[Scummvm-cvs-logs] SF.net SVN: scummvm:[40504] scummvm/trunk/engines/cruise/sound.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue May 12 21:24:11 CEST 2009
Revision: 40504
http://scummvm.svn.sourceforge.net/scummvm/?rev=40504&view=rev
Author: eriktorbjorn
Date: 2009-05-12 19:24:11 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Fixed what looks like an obvious error in loadSong() that Valgrind caught.
Modified Paths:
--------------
scummvm/trunk/engines/cruise/sound.cpp
Modified: scummvm/trunk/engines/cruise/sound.cpp
===================================================================
--- scummvm/trunk/engines/cruise/sound.cpp 2009-05-12 19:24:04 UTC (rev 40503)
+++ scummvm/trunk/engines/cruise/sound.cpp 2009-05-12 19:24:11 UTC (rev 40504)
@@ -119,8 +119,9 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list