Fix fencepost error.
This commit is contained in:
parent
100f7b0bc5
commit
d343706d65
@ -367,7 +367,7 @@ main(argc, argv)
|
|||||||
maxmaxcode = 1 << maxbits;
|
maxmaxcode = 1 << maxbits;
|
||||||
|
|
||||||
/* Build useless input file list. */
|
/* Build useless input file list. */
|
||||||
filelist = fileptr = (char **)(malloc(argc * sizeof(*argv)));
|
filelist = fileptr = (char **)(malloc((argc+1) * sizeof(*argv)));
|
||||||
while (*argv)
|
while (*argv)
|
||||||
*fileptr++ = *argv++;
|
*fileptr++ = *argv++;
|
||||||
*fileptr = NULL;
|
*fileptr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user