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

This commit is contained in:
Marcus Meissner 2011-11-12 09:04:51 +01:00 committed by Alexandre Julliard
parent ebde184b4c
commit af14cb60f7
1 changed files with 1 additions and 1 deletions

View File

@ -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);