ref: 41b772f1e4771798c1af76e13103a07ec25ca204
parent: 5e2df0a52e67fb9c696aec68ec5ee0b466eac6a9
author: Turo Lamminen <turotl@gmail.com>
date: Sat Jan 6 10:28:09 EST 2018
Swap fread parameters so return value makes more sense
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -652,7 +652,7 @@
SlotStatus[i] = 0;
continue;
}
- fread(&SlotText[i], SLOTTEXTLEN, 1, fp);
+ fread(&SlotText[i], 1, SLOTTEXTLEN, fp);
fclose(fp);
SlotStatus[i] = 1;
}
--- a/src/heretic/p_saveg.c
+++ b/src/heretic/p_saveg.c
@@ -131,7 +131,7 @@
void SV_Read(void *buffer, int size)
{
- fread(buffer, size, 1, SaveGameFP);
+ fread(buffer, 1, size, SaveGameFP);
}
byte SV_ReadByte(void)
--- a/src/hexen/sv_save.c
+++ b/src/hexen/sv_save.c
@@ -3372,7 +3372,7 @@
static void SV_Read(void *buffer, int size)
{
- fread(buffer, size, 1, SavingFP);
+ fread(buffer, 1, size, SavingFP);
}
static byte SV_ReadByte(void)