ref: 9eddf61979d8dbc0029c85b400f2488bdcabf25c
parent: a36b0984d8335858fcaf74f14214b2186b5b08b5
author: mkf <mkf@cloud9p.org>
date: Thu Nov 30 09:43:16 EST 2023
oops
--- a/libc/strncpy.c
+++ b/libc/strncpy.c
@@ -11,7 +11,7 @@
*dst++ = *src++;
num--;
}
- if(src != '\0')
+ if(*src != '\0')
*dst = '\0';
return (dst_p);