From 7caf083bad734d8ea930a23ddfd95b58a6572997 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 2 Nov 2022 21:45:17 -0500 Subject: [PATCH] Bugfix: Incorect spacing when combining --unicode with other digit displays. The original calculations are again the 6-digit Unicode "U+1234". There are also 8-digit Unicodes "U+123456". --- level_3/byte_dump/c/private-byte_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_3/byte_dump/c/private-byte_dump.c b/level_3/byte_dump/c/private-byte_dump.c index 2d94f96..156b206 100644 --- a/level_3/byte_dump/c/private-byte_dump.c +++ b/level_3/byte_dump/c/private-byte_dump.c @@ -470,7 +470,7 @@ extern "C" { fl_print_format(" U+%04_U ", data->main->output.to.stream, unicode); } else { - fl_print_format(" U+%06_U ", data->main->output.to.stream, unicode); + fl_print_format(" U+%06_U", data->main->output.to.stream, unicode); } } else { @@ -494,7 +494,7 @@ extern "C" { } else if (data->mode == byte_dump_mode_duodecimal_e) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to.stream); } if (invalid[current]) { -- 1.8.3.1