diff options
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/wstring.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/string/wstring.c b/libc/string/wstring.c index c9c8548fb..e4d0a39b3 100644 --- a/libc/string/wstring.c +++ b/libc/string/wstring.c @@ -1739,6 +1739,9 @@ Wchar *Wstpncpy(register Wchar * __restrict s1, void __bzero(void *s, size_t n) { +#if 1 + (void)memset(s, 0, n); +#else register unsigned char *p = s; #ifdef __BCC__ /* bcc can optimize the counter if it thinks it is a pointer... */ @@ -1751,6 +1754,7 @@ void __bzero(void *s, size_t n) *p++ = 0; --np; } +#endif } weak_alias(__bzero,bzero); #undef np |