From 5d8e3d19823a3c193b0ad4e8d8fd3ccdf8f77c80 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 26 Feb 2022 13:34:44 +0100 Subject: Update player playlist on changes to tag tracks --- src/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/history.c') diff --git a/src/history.c b/src/history.c index 5bb6288..75ce8ff 100644 --- a/src/history.c +++ b/src/history.c @@ -234,7 +234,7 @@ inputln_replace(struct inputln *line, const char *str) line->len = strlen(str); if (line->cap <= line->len) inputln_resize(line, line->len + 1); - strncpy(line->buf, str, line->len); + strncpy(line->buf, str, line->len + 1); line->cur = line->len; } -- cgit v1.2.3-71-gd317