changeset 1932:5638651b7b3d

Fixed warnings and one UTF-8 conversion.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Oct 2007 16:26:36 +0300
parents a1ed9f7cb4cc
children b6d547a4ca50
files src/modplug/modplugbmp.cxx
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/modplug/modplugbmp.cxx	Mon Oct 01 10:39:03 2007 +0200
+++ b/src/modplug/modplugbmp.cxx	Mon Oct 01 16:26:36 2007 +0300
@@ -506,7 +506,7 @@
 {
 	CSoundFile* lSoundFile;
 	Archive* lArchive;
-	gchar* tmps;
+	const gchar* tmps;
 	
 	//open and mmap the file
         lArchive = OpenArchive(aFilename);
@@ -553,9 +553,9 @@
 	 * an arbitrary module file uses .. typically it is some DOS CP-variant,
 	 * except for true Amiga modules.
 	 */
-	tmps = str_to_utf8(lSoundFile->GetTitle());
-	tuple_associate_string(ti, FIELD_TITLE, NULL, lSoundFile->GetTitle());
-	g_free(tmps);
+	gchar *tmps2 = str_to_utf8(lSoundFile->GetTitle());
+	tuple_associate_string(ti, FIELD_TITLE, NULL, tmps2);
+	g_free(tmps2);
 	
 	//unload the file
 	lSoundFile->Destroy();