summaryrefslogtreecommitdiff
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-09-24 20:03:53 +0000
committerNils Wallménius <nils@rockbox.org>2008-09-24 20:03:53 +0000
commit93a87685c3f39e731f4297b07bd139420b2e5554 (patch)
tree6ef4cd5f3b2b1a770ea1102cc6ce5d12f508e2e2 /apps/cuesheet.c
parent7d4cebd7dad4d1e5e97084c28a0f71d4d7142295 (diff)
Clean up use of snprintf where strncpy if suited, avoid useless copying of constant strings for wps token evaluator, minor const police too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 5583264ab9..9788427a07 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -272,8 +272,7 @@ static char *list_get_name_cb(int selected_item,
struct cuesheet *cue = (struct cuesheet *)data;
if (selected_item & 1)
- snprintf(buffer, buffer_len, "%s",
- cue->tracks[selected_item/2].title);
+ strncpy(buffer, cue->tracks[selected_item/2].title, buffer_len);
else
snprintf(buffer, buffer_len, "%02d. %s", selected_item/2+1,
cue->tracks[selected_item/2].performer);