diff options
Diffstat (limited to 'libc/string/strncpy.c')
-rw-r--r-- | libc/string/strncpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/strncpy.c b/libc/string/strncpy.c index b91091b..4426cbe 100644 --- a/libc/string/strncpy.c +++ b/libc/string/strncpy.c @@ -54,8 +54,8 @@ strncpy(char *dst, const char *src, size_t n) /* NUL pad the remaining n-1 bytes */ while (--n != 0) *d++ = 0; - break; - } + break; + } } while (--n != 0); } return (dst); |