CVS patchset: 300
CVS date: 1996/02/16 17:37:53
filelist = newStringBuf();
- sources = malloc(s->numSources * sizeof(char *));
- patches = malloc(s->numPatches * sizeof(char *));
+ sources = malloc((s->numSources+1) * sizeof(char *));
+ patches = malloc((s->numPatches+1) * sizeof(char *));
/* Link in the spec file and all the sources */
sprintf(dest, "%s%s", tempdir, strrchr(s->specfile, '/'));