From b8a542f60101c4dfece56ab8ade2fa813ee06fce Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Mon, 2 Nov 2026 22:34:57 +0100 Subject: [PATCH] Rewind function instead of fseek. --- asset_builder/object.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/asset_builder/object.c b/asset_builder/object.c index 35e3bc4..ff7c3b4 100644 --- a/asset_builder/object.c +++ b/asset_builder/object.c @@ -38,11 +38,7 @@ int build_object(const char *input_file_path, FILE *output_file) return EXIT_FAILURE; } - if(fseek(output_file, 0, SEEK_SET)) - { - error_printf("Failed to seek in output file : %d", errno); - return EXIT_FAILURE; - } + rewind(output_file); if(file_write(&asset_size, sizeof(asset_size), 1, output_file)) return_failure_int;