From: Peter Howkins Date: Wed, 4 Jul 2018 00:59:42 +0000 (+0100) Subject: dtdocbook: Coverity 86763 X-Git-Tag: 2.3.0a~200 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=751505e6ab7f594cb03fa378b7b8edbcb82e8cb0;p=oweals%2Fcde.git dtdocbook: Coverity 86763 --- diff --git a/cde/programs/dtdocbook/instant/main.c b/cde/programs/dtdocbook/instant/main.c index c3833687..09554a49 100644 --- a/cde/programs/dtdocbook/instant/main.c +++ b/cde/programs/dtdocbook/instant/main.c @@ -621,7 +621,7 @@ CmdLineSetVariable( int n; /* Turn '=' into a space, to isolate the name. Then set variable. */ - strcpy(buf, var); + snprintf(buf, sizeof(buf), "%s", var); if ((cp=strchr(buf, '='))) { /* we have "var=value" */ *cp = ' ';