Fix mod storage integer overflow

This commit is contained in:
MysterD 2023-11-26 13:34:31 -08:00
parent bda32438f6
commit d7ed085817
1 changed files with 2 additions and 2 deletions

View File

@ -47,12 +47,12 @@ bool char_valid(char* buffer) {
return true; return true;
} }
u32 key_count(char* filename) { s32 key_count(char* filename) {
FILE *file; FILE *file;
file = fopen(filename, "r"); file = fopen(filename, "r");
if (file == NULL) { return 0; } if (file == NULL) { return 0; }
u32 lines = 1; s32 lines = 1;
char c; char c;
do { do {
c = fgetc(file); c = fgetc(file);