Commit af14cb60 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wmc: Increate allocated size to match \0 (Coverity).

parent ebde184b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment