(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
This commit is contained in:
@@ -22,6 +22,7 @@ static FMusicDriver_Win32 iFMusicDriver_Win32;
|
||||
|
||||
void MusicDriver_Win32::PlaySong(const char *filename)
|
||||
{
|
||||
assert(filename != NULL);
|
||||
strcpy(_midi.start_song, filename);
|
||||
_midi.playing = true;
|
||||
_midi.stop_song = false;
|
||||
|
Reference in New Issue
Block a user