osutil.c: use strncpy instead of strncat
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 08 Oct 2007 21:37:25 -0300
changeset 5430 0bdea0abe62e
parent 5429 77cafe8f89e0
child 5431 a7c832abd29c
osutil.c: use strncpy instead of strncat
mercurial/osutil.c
--- a/mercurial/osutil.c	Mon Oct 08 18:47:22 2007 -0500
+++ b/mercurial/osutil.c	Mon Oct 08 21:37:25 2007 -0300
@@ -197,7 +197,7 @@
 		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) {