summaryrefslogtreecommitdiff
path: root/all_unicode_chars
diff options
context:
space:
mode:
authorstderr64 <stderr64@null.net>2024-11-02 23:38:01 +0200
committerstderr64 <stderr64@null.net>2024-11-02 23:38:01 +0200
commit0414b7bb8897ad33649a970b923c6f730e72c5bd (patch)
treeeb56d30e900e6386bcf494dcd30a8faefa4b5280 /all_unicode_chars
parent73177631f10b1214b43b5f4cc9c3229b52d8c55e (diff)
downloadexperiments-0414b7bb8897ad33649a970b923c6f730e72c5bd.tar.gz
experiments-0414b7bb8897ad33649a970b923c6f730e72c5bd.tar.zst
Use memmove instead of wmemmove because its bytes being copied and not wchars
Diffstat (limited to 'all_unicode_chars')
-rw-r--r--all_unicode_chars/all_unicode_chars.c2
1 files changed, 1 insertions, 1 deletions
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;
}