summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 091a8bb..3cd40de 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;