summaryrefslogtreecommitdiffstats
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-11-12 12:39:56 +0000
committerRobert Kukla <roolku@rockbox.org>2007-11-12 12:39:56 +0000
commite1c45d227b0f52189e13baf1359ddd17e1d48745 (patch)
tree2b787446ce662a0a9b58c3e92c7487d4e3da54b2 /apps/cuesheet.c
parent1ba1c684cb73d480013da4c29cea79d1eeeec765 (diff)
downloadrockbox-e1c45d227b0f52189e13baf1359ddd17e1d48745.tar.gz
rockbox-e1c45d227b0f52189e13baf1359ddd17e1d48745.tar.bz2
rockbox-e1c45d227b0f52189e13baf1359ddd17e1d48745.zip
FS#6944 - honour the default codepage setting when reading cue sheets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15595 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index d5fbc54f73..0928ac7e46 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -194,8 +194,10 @@ bool parse_cuesheet(char *file, struct cuesheet *cue)
break;
}
- if (dest)
- strncpy(dest, string, MAX_NAME);
+ if (dest) {
+ dest = iso_decode(string, dest, -1, MIN(strlen(string), MAX_NAME));
+ *dest = '\0';
+ }
}
}
close(fd);