mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 04:10:04 +00:00
wmc: Increate allocated size to match \0 (Coverity).
This commit is contained in:
parent
ebde184b4c
commit
af14cb60f7
@ -164,7 +164,7 @@ int main(int argc,char *argv[])
|
||||
|
||||
/* First rebuild the commandline to put in destination */
|
||||
/* Could be done through env[], but not all OS-es support it */
|
||||
cmdlen = 4; /* for "wmc " */
|
||||
cmdlen = 5; /* for "wmc " and \0 */
|
||||
for(i = 1; i < argc; i++)
|
||||
cmdlen += strlen(argv[i]) + 1;
|
||||
cmdline = xmalloc(cmdlen);
|
||||
|
Loading…
Reference in New Issue
Block a user