From 5dd6842e47ead3078c7dfd058a54c13d354a1d44 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 24 Oct 2007 18:28:03 +0000 Subject: Patch from Filippo Giunchedi * 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 --- ChangeLog | 7 +++++++ src/db-artwork-parser.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f61661..ee354d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-24 Christophe Fergeau + + Patch from Filippo Giunchedi + + * src/db-artwork-parser.c: (parse_mhba): another missing endianness + conversion + 2007-10-21 Christophe Fergeau Patch from Filippo Giunchedi 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); -- cgit