mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
Fixed what looks like an obvious error in loadSong() that Valgrind caught.
svn-id: r40504
This commit is contained in:
parent
72686a5a9e
commit
9c18a12fa0
@ -119,8 +119,9 @@ void MusicPlayer::loadSong(const char *name) {
|
||||
|
||||
// Get the file without the extension
|
||||
strcpy(baseName, name);
|
||||
char *p = strchr(tempName, '.');
|
||||
if (p) *p = '\0';
|
||||
char *p = strchr(baseName, '.');
|
||||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
// Get the instruments states file
|
||||
strcpy(tempName, baseName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user