summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 952f1ae0..fb4e6dd7 100644
--- a/playlist.c
+++ b/playlist.c
@@ -556,6 +556,7 @@ ps_format_item_display_name (playItem_t *it, char *str, int len) {
pname++;
}
strncpy (str, pname, pext-pname);
+ str[pext-pname] = 0;
}
}