X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Frun.c;h=82e0aaefb866ce80fd3f5d4f63a7f281c598ac19;hb=0cc6c4ad7e0b01e2a89ced908f410eadf3f22b1f;hp=83bb724cb67cabbabdb1dfbff2615fc592a22dae;hpb=e03020342a74aef143b1ec38c18966dac64181b5;p=plomrogue
diff --git a/src/server/run.c b/src/server/run.c
index 83bb724..82e0aae 100644
--- a/src/server/run.c
+++ b/src/server/run.c
@@ -9,7 +9,7 @@
#include /* access() */
#include "../common/readwrite.h" /* try_fopen(), try_fcose(), try_fwrite(),
* try_fgets(), try_fclose_unlink_rename(),
- * textfile_sizes(), try_fputc()
+ * textfile_width(), try_fputc()
*/
#include "../common/rexit.h" /* exit_trouble() */
#include "ai.h" /* ai() */
@@ -158,7 +158,7 @@ extern void obey_msg(char * msg, uint8_t do_record)
if (!access(world.path_record, F_OK))
{
FILE * file_read = try_fopen(world.path_record, "r", f_name);
- uint32_t linemax = textfile_sizes(file_read, NULL);
+ uint32_t linemax = textfile_width(file_read);
char line[linemax + 1];
while (try_fgets(line, linemax + 1, file_read, f_name))
{