diff -r 77cafe8f89e0 -r 0bdea0abe62e 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) {