diff options
Diffstat (limited to 'shelpers.c')
-rw-r--r-- | shelpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -14,6 +14,7 @@ char *strnclone(const char *s, uint32_t n) { char *clone = (char *)malloc(n + 1); strncpy(clone, s, n); + clone[n] = '\0'; return clone; } |