summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 9be5e43..a229739 100644
--- a/src/string.c
+++ b/src/string.c
@@ -59,6 +59,7 @@ size_t strlcpy( char *d, const char *s, size_t n )
d[len] = s[len];
len++;
}
+ d[len] = '\0';
while( s[len] ) {
len++;