summaryrefslogtreecommitdiff
path: root/apps/metadata/nsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/nsf.c')
-rw-r--r--apps/metadata/nsf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/metadata/nsf.c b/apps/metadata/nsf.c
index e1ad331d75..abb4e6fd80 100644
--- a/apps/metadata/nsf.c
+++ b/apps/metadata/nsf.c
@@ -14,12 +14,10 @@ bool get_nsf_metadata(int fd, struct mp3entry* id3)
14{ 14{
15 /* Use the trackname part of the id3 structure as a temporary buffer */ 15 /* Use the trackname part of the id3 structure as a temporary buffer */
16 unsigned char* buf = (unsigned char *)id3->path; 16 unsigned char* buf = (unsigned char *)id3->path;
17 int read_bytes;
18 char *p; 17 char *p;
19 18
20
21 if ((lseek(fd, 0, SEEK_SET) < 0) 19 if ((lseek(fd, 0, SEEK_SET) < 0)
22 || ((read_bytes = read(fd, buf, 110)) < 110)) 20 || (read(fd, buf, 110) < 110))
23 { 21 {
24 return false; 22 return false;
25 } 23 }
@@ -55,7 +53,6 @@ bool get_nsf_metadata(int fd, struct mp3entry* id3)
55 /* Copyright (per codec) */ 53 /* Copyright (per codec) */
56 memcpy(p, &buf[78], 32); 54 memcpy(p, &buf[78], 32);
57 id3->album = p; 55 id3->album = p;
58 p += strlen(p)+1;
59 56
60 return true; 57 return true;
61} 58}