From 751505e6ab7f594cb03fa378b7b8edbcb82e8cb0 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:59:42 +0100 Subject: [PATCH] dtdocbook: Coverity 86763 --- cde/programs/dtdocbook/instant/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ' '; -- 2.25.1