# HG changeset patch # User Alexis S. L. Carvalho # Date 1191890245 10800 # Node ID 0bdea0abe62e83c78e5aef6b93f3a1d7b033bbac # Parent 77cafe8f89e0ab1595e2c357e2da0972bf174828 osutil.c: use strncpy instead of strncat diff --git a/mercurial/osutil.c b/mercurial/osutil.c --- 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) {