summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 48c66db..be542bd 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 */