diff --git a/strv.c b/strv.c index 25ea92c112..4cea86e04f 100644 --- a/strv.c +++ b/strv.c @@ -281,6 +281,8 @@ char *strv_join(char **l, const char *separator) { e = stpcpy(e, *s); } + *e = 0; + return r; }