From bdc3ee7f436217a7f6c785dccdff1a8cfbb97f23 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:20:03 +0100 Subject: [PATCH] dtcm: Coverity 88902 --- cde/programs/dtcm/server/cmscalendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/cmscalendar.c b/cde/programs/dtcm/server/cmscalendar.c index 54552795..8858732c 100644 --- a/cde/programs/dtcm/server/cmscalendar.c +++ b/cde/programs/dtcm/server/cmscalendar.c @@ -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 -- 2.25.1