From: Peter Howkins Date: Wed, 4 Jul 2018 01:01:15 +0000 (+0100) Subject: dtdocbook: Coverity 86996 X-Git-Tag: 2.3.0a~199 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=82e8b8061222b6c4449dbc183c229ac64c178d5b;p=oweals%2Fcde.git dtdocbook: Coverity 86996 --- 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) {