summaryrefslogtreecommitdiffstats
path: root/src/history.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-02-26 13:34:44 +0100
committerLouis Burda <quent.burda@gmail.com>2022-02-26 13:41:57 +0100
commit5d8e3d19823a3c193b0ad4e8d8fd3ccdf8f77c80 (patch)
tree158b22680a71571d81ba6d869b6742fe8d4894ca /src/history.c
parentc22fd8aeac8906739cf947b7da732876efba8d20 (diff)
downloadtmus-5d8e3d19823a3c193b0ad4e8d8fd3ccdf8f77c80.tar.gz
tmus-5d8e3d19823a3c193b0ad4e8d8fd3ccdf8f77c80.zip
Update player playlist on changes to tag tracks
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c2
1 files changed, 1 insertions, 1 deletions
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;
}