From 3b85e48a68ca7b0ed838f2a6f2c20f11d24a2373 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:22:34 +0100 Subject: [PATCH] dtcm: Coverity 88481 --- cde/programs/dtcm/server/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/parser.y b/cde/programs/dtcm/server/parser.y index 0b8646f5..a89ff0eb 100644 --- a/cde/programs/dtcm/server/parser.y +++ b/cde/programs/dtcm/server/parser.y @@ -767,7 +767,7 @@ convert_2_tick(char *datestr) memset((void *)&tmstr, 0, sizeof(struct tm)); - strcpy(datebuf, datestr); + snprintf(datebuf, sizeof(datebuf), "%s", datestr); /* get week day */ ptr = strtok(datebuf, " "); -- 2.25.1