Revert "Remove dubious file size check"
This reverts commit 1b0feaf380e1714ec3c15d10872b7861e420b5d0.
This commit is contained in:
parent
1b0feaf380
commit
48800fc738
@ -1246,7 +1246,8 @@ static void parserespf(char *filename,char *oname,char *ename,char *pname,
|
||||
* a single '\n', so the string size may be smaller than the file
|
||||
* size. */
|
||||
memset(string,0,(int)size+1);
|
||||
fread(string,1,(int)size,fp);
|
||||
if (fread(string,1,(int)size,fp)<(size_t)size)
|
||||
error(100,filename); /* error reading input file */
|
||||
fclose(fp);
|
||||
/* allocate table for option pointers */
|
||||
if ((argv=(char **)malloc(MAX_OPTIONS*sizeof(char*)))==NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user