diff options
Diffstat (limited to 'str.c')
-rw-r--r-- | str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/str.c b/str.c index e0ea194..1c09f11 100644 --- a/str.c +++ b/str.c @@ -56,7 +56,7 @@ int strv_split(strv_t *src, int chr, strv_t *dest) { }; src->s = c ? c + 1 : &src->s[src->n]; src->n -= dest->n + !!c; - return dest->n > 0; + return (src->n + dest->n) > 0; } char strv_next(strv_t *s) { |