From cddb56958085798c6daa7b9b7e43172eeb80a605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=A1k?= Date: Sun, 26 Jan 2025 21:42:12 +0100 Subject: [PATCH] check scanf format --- game/temp_storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/temp_storage.h b/game/temp_storage.h index 62e4d8b..b0579e7 100644 --- a/game/temp_storage.h +++ b/game/temp_storage.h @@ -27,7 +27,7 @@ uint32_t temp_storage_read(void *data, uint32_t size, TMPFILE_RD *f); void temp_storage_skip(TMPFILE_RD *f, int bytes); int *temp_storage_internal_skip_ptr(TMPFILE_RD *f); -void temp_storage_internal_begin_scanf(TMPFILE_RD *f, const char *format, ... ); +void temp_storage_internal_begin_scanf(TMPFILE_RD *f, const char *format, ... ) __attribute__((format(scanf, 2, 3))); int temp_storage_internal_end_scanf(TMPFILE_RD *f);