From 23549fcea4fbc08bce033cd507d43769632d86ad Mon Sep 17 00:00:00 2001 From: jcsjcs Date: Sat, 4 Feb 2006 03:07:04 +0000 Subject: * src/itdb_itunesdb.c: (itunesstats_read) Fixed error when reading the Shuffle's stat file (0x18 was used as minimal record length instead of decimal '18'). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1202 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_itunesdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 3e1388d..2a2c133 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2005-12-11 16:27:34 jcs> +/* Time-stamp: <2006-02-04 12:04:25 jcs> | | Copyright (C) 2002-2005 Jorg Schuler | Part of the gtkpod project. @@ -701,7 +701,7 @@ static gboolean itunesstats_read (FImport *fimp, FContents *cts) struct playcount *playcount = g_new0 (struct playcount, 1); guint32 entry_length = get24lint (cts, seek+0); CHECK_ERROR (fimp, FALSE); - if (entry_length < 0x18) + if (entry_length < 18) { g_set_error (&fimp->error, ITDB_FILE_ERROR, -- cgit