changeset 5430:0bdea0abe62e

osutil.c: use strncpy instead of strncat
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 08 Oct 2007 21:37:25 -0300
parents 77cafe8f89e0
children a7c832abd29c
files mercurial/osutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {