Commits

Anthony Tuininga committed b03ca9e

The data coming back from readlink() may not in fact be null-terminated so
use strncat instead of strcat to avoid potential problems.

Comments (0)

Files changed (1)

source/bases/Common.c

             strcpy(temp, tempStr);
             Py_DECREF(encodedObj);
             strcat(temp, "/");
-            strcat(temp, linkData);
+            strncat(temp, linkData, linkSize);
             Py_DECREF(g_FileName);
             g_FileName = cxString_FromString(temp);
         }