]> Kevux Git Server - fll/commitdiff
Bugfix: Do not use 4 digits when should be printing 2 digit hexdigit.
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:46:07 +0000 (22:46 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:46:07 +0000 (22:46 -0600)
level_3/utf8/c/private-print.c

index 70b17950cad7b26c10b1aebcaaa151b005e6e3e3..42d6da524ee402c9a6296701c2baf53a19993ad4 100644 (file)
@@ -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);