diff options
| author | Ray <[email protected]> | 2023-11-01 15:28:18 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-11-01 15:28:18 +0100 |
| commit | 64d64cc18114c02ecb068b20b6c4820df6182415 (patch) | |
| tree | e95a1f4d95d5b3a09492ec54c2566047a588c275 /src/rcore.c | |
| parent | ba21b8d2744b39dadc6b17b9091a30cc5e00f0b8 (diff) | |
| download | raylib-64d64cc18114c02ecb068b20b6c4820df6182415.tar.gz raylib-64d64cc18114c02ecb068b20b6c4820df6182415.zip | |
REVIEWED: Potential code issues reported by CodeQL #3476
Diffstat (limited to 'src/rcore.c')
| -rw-r--r-- | src/rcore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c index 175d6861..d4e2573b 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -436,8 +436,8 @@ struct AutomationEvent { }; */ -static AutomationEventList *currentEventList = NULL; // Current automation events list, set by user, keep internal pointer -static bool automationEventRecording = false; // Recording automation events flag +static AutomationEventList *currentEventList = NULL; // Current automation events list, set by user, keep internal pointer +static bool automationEventRecording = false; // Recording automation events flag //static short automationEventEnabled = 0b0000001111111111; // TODO: Automation events enabled for recording/playing #endif //----------------------------------------------------------------------------------- @@ -2465,7 +2465,7 @@ bool ExportAutomationEventList(AutomationEventList list, const char *fileName) byteCount += sprintf(txtData + byteCount, "c %i\n", list.count); for (int i = 0; i < list.count; i++) { - byteCount += sprintf(txtData + byteCount, "e %i %i %i %i %i %i // Event: %s\n", list.events[i].frame, list.events[i].type, + byteCount += snprintf(txtData + byteCount, 256, "e %i %i %i %i %i %i // Event: %s\n", list.events[i].frame, list.events[i].type, list.events[i].params[0], list.events[i].params[1], list.events[i].params[2], list.events[i].params[3], autoEventTypeName[list.events[i].type]); } |
