From d76116a21117042420d79ee2c10cecb5fdb237a9 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 8 Aug 2002 13:58:53 +0000 Subject: Fix for double-slash fix git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1614 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/playlist.c b/apps/playlist.c index be542bd6bc..63bd902ae2 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -125,7 +125,7 @@ char* playlist_next(int steps) } else { strncpy(dir_buf, playlist.filename, playlist.dirlen-1); - dir_buf[playlist.dirlen] = 0; + dir_buf[playlist.dirlen-1] = 0; /* handle dos style drive letter */ if ( ':' == buf[1] ) { -- cgit v1.2.3