diff options
Diffstat (limited to 'libc/string/strlcat.c')
-rw-r--r-- | libc/string/strlcat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/strlcat.c b/libc/string/strlcat.c index ad2215b..ceab094 100644 --- a/libc/string/strlcat.c +++ b/libc/string/strlcat.c @@ -46,9 +46,9 @@ strlcat(char *dst, const char *src, size_t siz) if (n != 1) { *d++ = *s; n--; - } + } s++; - } + } *d = '\0'; return(dlen + (s - src)); /* count does not include NUL */ |