1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: Coverity 88902

This commit is contained in:
Peter Howkins 2018-07-04 01:20:03 +01:00
parent eb9ef605ca
commit bdc3ee7f43

View file

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