X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e7c67065c060d500eba8d073da9568db2c658aad..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))