1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

Updating changes from HEAD.

(This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241)
This commit is contained in:
John Terpstra 2002-12-10 23:19:18 +00:00
parent 1cee6e571e
commit ad43ee6f5b

View File

@ -90,7 +90,8 @@ canonicalize (char *path)
if (realpath (path, canonical))
return canonical;
pstrcpy (canonical, path);
strncpy (canonical, path, PATH_MAX);
canonical[PATH_MAX] = '\0';
return canonical;
}