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
+++ 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) {