diff options
| author | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-10-31 23:55:46 +0000 |
|---|---|---|
| committer | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-10-31 23:55:46 +0000 |
| commit | 2f243c4f410e5d40c497d66d7d23729dfd12ff5e (patch) | |
| tree | 7f683021ef082412f76c6ebbf683e95c50dc8061 /src | |
| parent | cd4febde0183203fa38fd6be6830b9f6e65d85db (diff) | |
| download | libgpod-2f243c4f410e5d40c497d66d7d23729dfd12ff5e.tar.gz libgpod-2f243c4f410e5d40c497d66d7d23729dfd12ff5e.tar.xz libgpod-2f243c4f410e5d40c497d66d7d23729dfd12ff5e.zip | |
* itdb_itunesdb.c (get16lint): fixed bug affecting big endian
systems. Thanks to Martin Aumueller for spotting this.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1131 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
| -rw-r--r-- | src/itdb_itunesdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 3efe40c..173215f 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2005-10-26 01:00:07 jcs> +/* Time-stamp: <2005-11-01 08:55:02 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -126,7 +126,7 @@ #define ITUNESDB_DEBUG 0 #define ITUNESDB_MHIT_DEBUG 0 -#define ITUNESDB_COPYBLK 262144 /* blocksize for cp () */ +#define ITUNESDB_COPYBLK (1024*1024*4) /* blocksize for cp () */ /* Note: some of the comments for the MHOD_IDs are copied verbatim @@ -411,12 +411,12 @@ static guint8 get8int (FContents *cts, glong seek) encoding. On error the GError in @cts is set. */ static guint16 get16lint (FContents *cts, glong seek) { - guint32 n=0; + guint16 n=0; if (check_seek (cts, seek, 2)) { g_return_val_if_fail (cts->contents, 0); - memcpy (&n, &cts->contents[seek], 4); + memcpy (&n, &cts->contents[seek], 2); # if (G_BYTE_ORDER == G_BIG_ENDIAN) n = GUINT16_SWAP_LE_BE (n); # endif |
