summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-05-06 15:09:41 +0000
committerNils Wallménius <nils@rockbox.org>2007-05-06 15:09:41 +0000
commitf41497f98e0a16047becfcd4f3c88a0684d23205 (patch)
tree3f1d68cc903f17fcefc219a713cc7d8307622644
parent685005ec4c597968c9e1125025882c45868c842a (diff)
downloadrockbox-f41497f98e0a16047becfcd4f3c88a0684d23205.tar.gz
rockbox-f41497f98e0a16047becfcd4f3c88a0684d23205.zip
Fix metadata reading for 64 bit sims. Closes FS#6690
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13335 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/metadata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 70e7c0542e..54bb40413e 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -383,8 +383,8 @@ static bool read_vorbis_tags(int fd, struct mp3entry *id3,
383 long tag_remaining) 383 long tag_remaining)
384{ 384{
385 char *buf = id3->id3v2buf; 385 char *buf = id3->id3v2buf;
386 long comment_count; 386 int32_t comment_count;
387 long len; 387 int32_t len;
388 int buf_remaining = sizeof(id3->id3v2buf) + sizeof(id3->id3v1buf); 388 int buf_remaining = sizeof(id3->id3v2buf) + sizeof(id3->id3v1buf);
389 int i; 389 int i;
390 390
@@ -411,7 +411,7 @@ static bool read_vorbis_tags(int fd, struct mp3entry *id3,
411 { 411 {
412 char name[TAG_NAME_LENGTH]; 412 char name[TAG_NAME_LENGTH];
413 char value[TAG_VALUE_LENGTH]; 413 char value[TAG_VALUE_LENGTH];
414 long read_len; 414 int32_t read_len;
415 415
416 if (tag_remaining < 4) 416 if (tag_remaining < 4)
417 { 417 {