dtcm: Coverity 88902

This commit is contained in:
Peter Howkins 2018-07-13 16:34:12 +01:00
parent 89427d0972
commit 207678795b
1 changed files with 1 additions and 1 deletions

View File

@ -997,7 +997,7 @@ get_file_owner(char *calname, char **owner)
*owner = NULL;
if (_DtCmIsUserName(calname) == B_TRUE) {
strcpy(buf, calname);
snprintf(buf, sizeof(buf), "%s", calname);
} else {
if ((log = _DtCmsGetLogFN(calname)) == NULL)
return (CSA_E_INSUFFICIENT_MEMORY);