mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 87565
This commit is contained in:
parent
c7a649afb9
commit
8950afd36a
1 changed files with 6 additions and 6 deletions
|
@ -93,18 +93,18 @@ ReToString(
|
|||
cmd_buf_tmp = cmd_buf;
|
||||
|
||||
if (cmd_buf) cmd_buf_size = strlen(cmd_buf);
|
||||
if (subcommand) subcommand_size = strlen(subcommand);
|
||||
subcommand_size = strlen(subcommand);
|
||||
|
||||
cmd_buf = (char *)calloc(1, cmd_buf_size + subcommand_size + 2);
|
||||
|
||||
if (cmd_buf_tmp)
|
||||
strcat (cmd_buf, cmd_buf_tmp);
|
||||
|
||||
if (subcommand) {
|
||||
if (cmd_buf_tmp)
|
||||
strcat (cmd_buf, " ");
|
||||
strcat (cmd_buf, subcommand);
|
||||
}
|
||||
|
||||
if (cmd_buf_tmp)
|
||||
strcat (cmd_buf, " ");
|
||||
strcat (cmd_buf, subcommand);
|
||||
|
||||
|
||||
memset (subcommand, 0, 1024);
|
||||
|
||||
|
|
Loading…
Reference in a new issue