From ec7b5cde2ee33f1c3e40fad8892716907d58c39b Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Tue, 15 Oct 2002 12:21:19 +0000 Subject: missed an snprintf arg git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2656 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/playlist.c') 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; -- cgit v1.2.3