mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtdocbook: Coverity 86763
This commit is contained in:
parent
40b38d300b
commit
751505e6ab
1 changed files with 1 additions and 1 deletions
|
@ -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 = ' ';
|
||||
|
|
Loading…
Reference in a new issue