From ad1e09939f6ee6db97e816bced8eaede31545587 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 3 Nov 2020 20:32:14 -0600 Subject: [PATCH] Bugfix: Fake incorrectly builds header file names. The NULL terminating character is not appended after each new header name. This resulted in garbled header names due to existing content in the buffer. --- level_3/fake/c/private-build.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index 2cb22f4..f0d86db 100644 --- a/level_3/fake/c/private-build.c +++ b/level_3/fake/c/private-build.c @@ -270,6 +270,13 @@ extern "C" { break; } + *status = fl_string_dynamic_terminate_after(&destination_file); + + if (F_status_is_error(*status)) { + fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true); + break; + } + if (fake_signal_received(data)) { *status = F_status_set_error(F_signal); break; -- 1.8.3.1