LibC: Fix stpncpy

I had misunderstood and tought that the string is always
null terminated
This commit is contained in:
Bananymous 2023-12-15 00:33:37 +02:00
parent c773e2ed07
commit 1cd5b3c20c
1 changed files with 0 additions and 1 deletions

View File

@ -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];
}