Skip to content

Commit

Permalink
Fix crash on startup when there are no MIDI devices (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl authored Dec 15, 2024
1 parent 3eaf722 commit 0f308a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/drivers/fluid_winmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,6 @@ static void fluid_winmidi_autoconnect_build_name(char *name)
strncat(new_name, x, j);
}

name[n - 1] = 0;

FLUID_MEMSET(name, 0, MAXPNAMELEN);
FLUID_STRCPY(name, new_name);
}
Expand Down

0 comments on commit 0f308a9

Please sign in to comment.