From 1cbe4c2e057e3226af3e12eaf2ec29a23152cc9e Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 8 Aug 2002 10:29:14 +0000 Subject: Removed the extra slash between the dir and filename for relative paths git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1608 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/playlist.c b/apps/playlist.c index 48c66dbc80..be542bd6bc 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -124,7 +124,7 @@ char* playlist_next(int steps) return now_playing; } else { - strncpy(dir_buf, playlist.filename, playlist.dirlen); + strncpy(dir_buf, playlist.filename, playlist.dirlen-1); dir_buf[playlist.dirlen] = 0; /* handle dos style drive letter */ -- cgit v1.2.3