From 56346d0b8041caa99ce1ac57becff11e78fd561e Mon Sep 17 00:00:00 2001 From: stderr64 Date: Sun, 3 Nov 2024 21:59:39 +0200 Subject: Forgot to change this from uint16_t to uin32_t --- all_unicode_chars/all_unicode_chars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all_unicode_chars/all_unicode_chars.c b/all_unicode_chars/all_unicode_chars.c index f58f120..34e3182 100644 --- a/all_unicode_chars/all_unicode_chars.c +++ b/all_unicode_chars/all_unicode_chars.c @@ -38,7 +38,7 @@ int main( int argc, char *args[] ){ exit( EXIT_FAILURE ); } ssize_t char_written = 0; - if ( (char_written = (ssize_t)fwrite((void*)&char_buffer, sizeof(uint16_t), char_bytes, output)) < 0 ){ + if ( (char_written = (ssize_t)fwrite((void*)&char_buffer, sizeof(uint32_t), char_bytes, output)) < 0 ){ fclose( output ); fprintf( stderr, "Error writing file: %s\n", strerror(errno) ); exit( EXIT_FAILURE ); -- cgit v1.2.3-86-g962b