Module: wine Branch: master Commit: af14cb60f7af67472cf7494eb5d0395cb7bd068e URL: http://source.winehq.org/git/wine.git/?a=commit;h=af14cb60f7af67472cf7494eb5...
Author: Marcus Meissner marcus@jet.franken.de Date: Sat Nov 12 09:04:51 2011 +0100
wmc: Increate allocated size to match \0 (Coverity).
---
tools/wmc/wmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/wmc/wmc.c b/tools/wmc/wmc.c index 837cfa6..c9ad9c4 100644 --- a/tools/wmc/wmc.c +++ b/tools/wmc/wmc.c @@ -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);