Fix mod storage integer overflow
This commit is contained in:
parent
bda32438f6
commit
d7ed085817
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue