X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Fserver%2Finit.c;h=4e885fee3855a39293f9f764d9950e984de64117;hb=0cc6c4ad7e0b01e2a89ced908f410eadf3f22b1f;hp=b63fbf96843dad69998e453fdf851b9a58db7ae0;hpb=f9c94db47aa883149aa762fa128ac1ff1b3f92e1;p=plomrogue diff --git a/src/server/init.c b/src/server/init.c index b63fbf9..4e885fe 100644 --- a/src/server/init.c +++ b/src/server/init.c @@ -7,7 +7,7 @@ #include /* atoi() */ #include /* time() */ #include /* optarg, getopt(), access(), unlink() */ -#include "../common/readwrite.h" /* try_fopen(), try_fclose(), textfile_sizes(), +#include "../common/readwrite.h" /* try_fopen(), try_fclose(), textfile_width(), * try_fgets() */ #include "../common/rexit.h" /* exit_err() */ @@ -80,7 +80,7 @@ extern void run_game() if (!access(world.path_record, F_OK)) { FILE * file = try_fopen(world.path_record, "r", f_name); - uint32_t linemax = textfile_sizes(file, NULL); + uint32_t linemax = textfile_width(file); char line[linemax + 1]; while ( (!world.replay || (world.turn < world.replay)) && NULL != try_fgets(line, linemax + 1, file, f_name))