diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-12-02 14:01:54 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-12-02 14:01:54 +0100 |
commit | b321f7532c2f3a1a00b4dfa121b950aff4f44f7d (patch) | |
tree | df586bbb23305e66799f42f3910c1a090d597c6d /FICS | |
parent | 14a7311025739955079089d5e682617b794796b8 (diff) |
Usage of sizeof
Diffstat (limited to 'FICS')
-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)); } |