summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-10-15 12:21:19 +0000
committerRobert Hak <adiamas@rockbox.org>2002-10-15 12:21:19 +0000
commitec7b5cde2ee33f1c3e40fad8892716907d58c39b (patch)
tree5b48f632a37835c256c322e06b586ce592d993a5 /apps/playlist.c
parent8b16eefbc417b383aaad22a1bcc50d9cd41f5fca (diff)
missed an snprintf arg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2656 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 091a8bb1b0..3cd40deb45 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -116,7 +116,7 @@ void playlist_name(char *name, int name_size)
char buf[MAX_PATH+1];
int i = 0;
- snprintf(buf, "%s", playlist.filename+playlist.dirlen);
+ snprintf(buf, sizeof(buf), "%s", playlist.filename+playlist.dirlen);
while((buf[i] != '.') && (buf[i] != 0))
i++;
buf[i] = 0;