diff options
author | Christophe Fergeau <teuf@gnome.org> | 2007-10-24 18:28:03 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2007-10-24 18:28:03 +0000 |
commit | 5dd6842e47ead3078c7dfd058a54c13d354a1d44 (patch) | |
tree | 94bfb6086dfc10fb7fa9f4481a26223c14a51503 | |
parent | 79f0a31503892c746240144414bcfdf814faa52f (diff) | |
download | libgpod-5dd6842e47ead3078c7dfd058a54c13d354a1d44.tar.gz libgpod-5dd6842e47ead3078c7dfd058a54c13d354a1d44.tar.xz libgpod-5dd6842e47ead3078c7dfd058a54c13d354a1d44.zip |
Patch from Filippo Giunchedi <filippo@esaurito.net>
* src/db-artwork-parser.c: (parse_mhba): another missing endianness
conversion
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1734 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/db-artwork-parser.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2007-10-24 Christophe Fergeau <teuf@gnome.org> + + Patch from Filippo Giunchedi <filippo@esaurito.net> + + * src/db-artwork-parser.c: (parse_mhba): another missing endianness + conversion + 2007-10-21 Christophe Fergeau <teuf@gnome.org> Patch from Filippo Giunchedi <filippo@esaurito.net> diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c index 378130d..81db5a8 100644 --- a/src/db-artwork-parser.c +++ b/src/db-artwork-parser.c @@ -363,7 +363,7 @@ parse_mhba (DBParseContext *ctx, GError *error) } db_parse_context_set_total_len (mhod_ctx, get_gint32(mhod->total_len, ctx->byte_order)); mhod1 = (MhodHeaderArtworkType1*)mhod; - album->name = g_strndup ((gchar *)mhod1->string, mhod1->string_len); + album->name = g_strndup ((gchar *)mhod1->string, get_gint32(mhod1->string_len, ctx->byte_order)); cur_offset += mhod_ctx->total_len; dump_mhod_type_1 (mhod1); g_free (mhod_ctx); |