From 0414b7bb8897ad33649a970b923c6f730e72c5bd Mon Sep 17 00:00:00 2001 From: stderr64 Date: Sat, 2 Nov 2024 23:38:01 +0200 Subject: Use memmove instead of wmemmove because its bytes being copied and not wchars --- all_unicode_chars/all_unicode_chars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'all_unicode_chars') diff --git a/all_unicode_chars/all_unicode_chars.c b/all_unicode_chars/all_unicode_chars.c index b278f4f..5c1a0bf 100644 --- a/all_unicode_chars/all_unicode_chars.c +++ b/all_unicode_chars/all_unicode_chars.c @@ -24,7 +24,7 @@ int main( int argc, char *args[] ){ current_char = 0x00A0; if ( (b_size = wcrtomb((char*)&mbstr, (wchar_t)current_char, m_state)) == (size_t)-1 ) continue; - wmemmove( (void*)&char_buffer[char_bytes], (const void*)&mbstr, b_size ); + memmove( (void*)&char_buffer[char_bytes], (const void*)&mbstr, b_size ); memset( (void*)&mbstr, 0, b_size ); char_bytes += b_size; } -- cgit v1.2.3-86-g962b