##// END OF EJS Templates
osutil.c: use strncpy instead of strncat
Alexis S. L. Carvalho -
r5430:0bdea0ab default
parent child Browse files
Show More
@@ -197,7 +197,7 b' static PyObject *statfiles(PyObject *lis'
197 if (kind != -1 && !keep)
197 if (kind != -1 && !keep)
198 continue;
198 continue;
199
199
200 strncat(path + len + 1, name, PATH_MAX - len);
200 strncpy(path + len + 1, name, PATH_MAX - len);
201 path[PATH_MAX] = 0;
201 path[PATH_MAX] = 0;
202
202
203 if (keep) {
203 if (keep) {
General Comments 0
You need to be logged in to leave comments. Login now