From 8fb78ac372e7d5cfc0ea700c76ccac4f2f921327 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 10 Dec 2021 22:46:07 -0600 Subject: [PATCH] Bugfix: Do not use 4 digits when should be printing 2 digit hexdigit. --- level_3/utf8/c/private-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/utf8/c/private-print.c b/level_3/utf8/c/private-print.c index 70b1795..42d6da5 100644 --- a/level_3/utf8/c/private-print.c +++ b/level_3/utf8/c/private-print.c @@ -25,7 +25,7 @@ extern "C" { fl_print_format("%s%[0x", data->file.stream, data->prepend, set); for (uint8_t i = 0; i < character.used; ++i) { - fl_print_format("%04_uii", data->file.stream, (uint8_t) character.string[i]); + fl_print_format("%02_uii", data->file.stream, (uint8_t) character.string[i]); } // for fl_print_format("%]%s", data->file.stream, set, data->append); -- 1.8.3.1