diff --git a/libc/string.cpp b/libc/string.cpp index 49f60c1a46..44c088aafe 100644 --- a/libc/string.cpp +++ b/libc/string.cpp @@ -89,7 +89,6 @@ char* stpncpy(char* __restrict__ dest, const char* __restrict__ src, size_t n) dest[i] = src[i]; for (; n; i++, n--) dest[i] = '\0'; - dest[i] = '\0'; return &dest[i]; }