X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/deee574b1198a2886369f4ecbfbeaa6f851bb41d..c9bce0b8f8a485f11ce4f90356e9346036f14daf:/lib/permstring.c diff --git a/lib/permstring.c b/lib/permstring.c index 304b2a93..ba981ee2 100644 --- a/lib/permstring.c +++ b/lib/permstring.c @@ -30,7 +30,7 @@ void permstring(char *perms, mode_t mode) static const char *perm_map = "rwxrwxrwx"; int i; - strcpy(perms, "----------"); + strlcpy(perms, "----------", 11); for (i = 0; i < 9; i++) { if (mode & (1 << i))