dtdocbook: Coverity 86763
This commit is contained in:
@@ -621,7 +621,7 @@ CmdLineSetVariable(
|
|||||||
int n;
|
int n;
|
||||||
|
|
||||||
/* Turn '=' into a space, to isolate the name. Then set variable. */
|
/* Turn '=' into a space, to isolate the name. Then set variable. */
|
||||||
strcpy(buf, var);
|
snprintf(buf, sizeof(buf), "%s", var);
|
||||||
if ((cp=strchr(buf, '='))) {
|
if ((cp=strchr(buf, '='))) {
|
||||||
/* we have "var=value" */
|
/* we have "var=value" */
|
||||||
*cp = ' ';
|
*cp = ' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user