diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 2 |
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; |