Skip to content

Commit

Permalink
Fix strncpy order
Browse files Browse the repository at this point in the history
  • Loading branch information
dylwhich committed Sep 22, 2024
1 parent f731c75 commit 921e3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/src/extensions/midi/ext_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 921e3fb

Please sign in to comment.