From a756913a7134c207a7d29a1175a428b02f61b777 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 11 Aug 2022 23:12:12 +0300 Subject: minor bug fixes --- src/tiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tiles.c') diff --git a/src/tiles.c b/src/tiles.c index 28ec89c..cecee5a 100644 --- a/src/tiles.c +++ b/src/tiles.c @@ -55,7 +55,7 @@ static void load_tile_data(char *tc, char *ts, size_t *tid) exit(EXIT_FAILURE); } - fread(tid, sizeof(size_t), sizeof(size_t), fp); + fread(tid, sizeof(size_t), 1, fp); fread(tc, 1, *tid, fp); fread(ts, 1, *tid, fp); -- cgit v1.2.3