diff options
author | Christophe Fergeau <teuf@gnome.org> | 2007-10-21 12:16:30 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2007-10-21 12:16:30 +0000 |
commit | 79f0a31503892c746240144414bcfdf814faa52f (patch) | |
tree | 1b792be21a64928f0146831f80936c802df14077 | |
parent | f7e0ac1bcad99bfe46d8e2d5cc0e84316ef9f90b (diff) | |
download | libgpod-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/db-artwork-debug.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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); } |