summaryrefslogtreecommitdiffstats
path: root/include/strutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/strutils.h')
-rw-r--r--include/strutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h
index 5584ac5ec..50733c5f5 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -262,6 +262,7 @@ static inline void strrem(char *s, int rem)
if (*s != rem)
*p++ = *s;
}
+ *p = '\0';
}
extern char *strnappend(const char *s, const char *suffix, size_t b);