dtcm: Coverity 88902

This commit is contained in:
Peter Howkins 2018-07-04 01:20:03 +01:00
parent eb9ef605ca
commit bdc3ee7f43
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ get_file_owner(char *calname, char **owner)
if (res == 0) {
if (pw = getpwuid(info.st_uid))
strcpy(buf, pw->pw_name);
snprintf(buf, sizeof(buf), "%s", pw->pw_name);
else
return (CSA_E_FAILURE);
} else