Fix fencepost error.

This commit is contained in:
mycroft 1993-06-23 06:52:08 +00:00
parent 100f7b0bc5
commit d343706d65

View File

@ -367,7 +367,7 @@ main(argc, argv)
maxmaxcode = 1 << maxbits;
/* Build useless input file list. */
filelist = fileptr = (char **)(malloc(argc * sizeof(*argv)));
filelist = fileptr = (char **)(malloc((argc+1) * sizeof(*argv)));
while (*argv)
*fileptr++ = *argv++;
*fileptr = NULL;