From: Peter Howkins Date: Fri, 13 Jul 2018 15:34:12 +0000 (+0100) Subject: dtcm: Coverity 88902 X-Git-Tag: 2.3.0a~143 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=207678795bc7ccc7ef9067cc941dceb295eaa905;p=oweals%2Fcde.git dtcm: Coverity 88902 --- diff --git a/cde/programs/dtcm/server/cmscalendar.c b/cde/programs/dtcm/server/cmscalendar.c index 8daeb539..b3402884 100644 --- a/cde/programs/dtcm/server/cmscalendar.c +++ b/cde/programs/dtcm/server/cmscalendar.c @@ -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);