summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2007-10-21 12:16:30 +0000
committerChristophe Fergeau <teuf@gnome.org>2007-10-21 12:16:30 +0000
commit79f0a31503892c746240144414bcfdf814faa52f (patch)
tree1b792be21a64928f0146831f80936c802df14077
parentf7e0ac1bcad99bfe46d8e2d5cc0e84316ef9f90b (diff)
downloadlibgpod-79f0a31503892c746240144414bcfdf814faa52f.tar.gz
libgpod-79f0a31503892c746240144414bcfdf814faa52f.tar.xz
libgpod-79f0a31503892c746240144414bcfdf814faa52f.zip
Patch from Filippo Giunchedi <filippo@esaurito.net>
* src/db-artwork-debug.c: (dump_mhod_type_3): add missing byte-swap which resulted in over huge allocation git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1730 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog7
-rw-r--r--src/db-artwork-debug.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 66fd41f..7f61661 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
Patch from Filippo Giunchedi <filippo@esaurito.net>
+ * src/db-artwork-debug.c: (dump_mhod_type_3): add missing byte-swap
+ which resulted in over huge allocation
+
+2007-10-21 Christophe Fergeau <teuf@gnome.org>
+
+ Patch from Filippo Giunchedi <filippo@esaurito.net>
+
* src/db-artwork-debug.c: (dump_mhba): fix dumping function in debug
mode
* src/db-itunes-parser.h: indentation fixes
diff --git a/src/db-artwork-debug.c b/src/db-artwork-debug.c
index b7e477a..d7cff79 100644
--- a/src/db-artwork-debug.c
+++ b/src/db-artwork-debug.c
@@ -102,7 +102,7 @@ dump_mhod_type_3 (ArtworkDB_MhodHeaderArtworkType3 *mhod3)
g_print ("\tString length: %u\n", GINT_FROM_LE (mhod3->string_len));
g_print ("\tMHOD version: %u\n", GINT_FROM_LE (mhod3->mhod_version));
g_print ("\tUnknown4: %08x\n", GINT_FROM_LE (mhod3->unknown4));
- str = get_utf16_string (mhod3->string, mhod3->string_len);
+ str = get_utf16_string (mhod3->string, GINT_FROM_LE (mhod3->string_len));
g_print ("\tString: %s\n", str);
g_free (str);
}