mercurial/osutil.c
changeset 5430 0bdea0abe62e
parent 5428 eb1b6aaeb32e
child 5431 a7c832abd29c
--- a/mercurial/osutil.c
+++ b/mercurial/osutil.c
@@ -197,7 +197,7 @@ static PyObject *statfiles(PyObject *lis
 		if (kind != -1 && !keep)
 			continue;
 
-		strncat(path + len + 1, name, PATH_MAX - len);
+		strncpy(path + len + 1, name, PATH_MAX - len);
 		path[PATH_MAX] = 0;
 
 		if (keep) {