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:
parent
eb9ef605ca
commit
bdc3ee7f43
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue