Correct long-size bug that resulted in checksum error.

Idea thanks tp Max Ninneman.
This commit is contained in:
Eric S. Raymond 2017-05-22 09:30:51 -04:00
parent f5831dbf39
commit 5286f6b3bd
2 changed files with 8 additions and 8 deletions

4
misc.c
View file

@ -1004,8 +1004,8 @@ L20: printf("\nFile name: ");
if(F == NULL) {printf("Can't open file, try again.\n"); goto L20;}
return;
L30: if(IN)IGNORE(fread(ARR,4,250,F));
if(!IN)fwrite(ARR,4,250,F);
L30: if(IN)IGNORE(fread(ARR,sizeof(long),250,F));
if(!IN)fwrite(ARR,sizeof(long),250,F);
return;
}