From 82e8b8061222b6c4449dbc183c229ac64c178d5b Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 02:01:15 +0100 Subject: [PATCH] dtdocbook: Coverity 86996 --- cde/programs/dtdocbook/instant/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtdocbook/instant/util.c b/cde/programs/dtdocbook/instant/util.c index 9a782692..fa726e0f 100644 --- a/cde/programs/dtdocbook/instant/util.c +++ b/cde/programs/dtdocbook/instant/util.c @@ -353,7 +353,7 @@ SetMapping( fprintf(stderr, "SetMapping: Map not initialized.\n"); return; } - strcpy(buf, s); + snprintf(buf, sizeof(buf), "%s", s); name = val = buf; while (*val && !IsWhite(*val)) val++; /* point past end of name */ if (*val) { -- 2.25.1