diff options
-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 be542bd6bc..63bd902ae2 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -125,7 +125,7 @@ char* playlist_next(int steps) | |||
125 | } | 125 | } |
126 | else { | 126 | else { |
127 | strncpy(dir_buf, playlist.filename, playlist.dirlen-1); | 127 | strncpy(dir_buf, playlist.filename, playlist.dirlen-1); |
128 | dir_buf[playlist.dirlen] = 0; | 128 | dir_buf[playlist.dirlen-1] = 0; |
129 | 129 | ||
130 | /* handle dos style drive letter */ | 130 | /* handle dos style drive letter */ |
131 | if ( ':' == buf[1] ) { | 131 | if ( ':' == buf[1] ) { |