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