From 921e3fb3cf8dcc91cf62cded1163db15317316a3 Mon Sep 17 00:00:00 2001 From: Dylan Whichard Date: Sun, 22 Sep 2024 15:35:15 -0700 Subject: [PATCH] Fix strncpy order --- emulator/src/extensions/midi/ext_midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/src/extensions/midi/ext_midi.c b/emulator/src/extensions/midi/ext_midi.c index 98a0bdc55..417a51762 100644 --- a/emulator/src/extensions/midi/ext_midi.c +++ b/emulator/src/extensions/midi/ext_midi.c @@ -144,7 +144,7 @@ static bool midiInjectFile(const char* path) #ifdef EMU_MACOS static void doFileOpenCb(const char* path) { - strncpy(midiPathBuffer, sizeof(midiPathBuffer), path); + strncpy(midiPathBuffer, path, sizeof(midiPathBuffer)); midiFile = midiPathBuffer; if (emulatorStarted)