From 215eb967e84c4bd9e193e242b586e7f1e67010a5 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 24 Feb 2023 18:31:16 +0100 Subject: [PATCH] Update rcore.c --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 807d58f91..8e7adda97 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -6996,7 +6996,7 @@ static void ExportAutomationEvents(const char *fileName) // Save as binary /* FILE *repFile = fopen(fileName, "wb"); - fwrite(fileId, 4, 1, repFile); + fwrite(fileId, sizeof(unsigned char), 4, repFile); fwrite(&eventCount, sizeof(int), 1, repFile); fwrite(events, sizeof(AutomationEvent), eventCount, repFile); fclose(repFile);