diff options
-rw-r--r-- | FICS/playerdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 59f7438..93c81e8 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -950,7 +950,7 @@ player_read(int p, char *name) parray[p].registered = 1; // Lets load the file - fgets(line, MAX_LINE_SIZE, fp); // Ok, so which version file? + fgets(line, sizeof line, fp); // Ok, so which version file? if (line[0] == 'v') sscanf(line, "%*c %d", &version); @@ -982,7 +982,7 @@ player_read(int p, char *name) value = eatwhite(value); stolower(attr); got_attr_value_player(p, attr, value, fp, fname); - fgets(line, MAX_LINE_SIZE, fp); + fgets(line, sizeof line, fp); } while (!feof(fp)); } |