From: Kevin Day Date: Wed, 4 Nov 2020 02:32:14 +0000 (-0600) Subject: Bugfix: Fake incorrectly builds header file names. X-Git-Tag: 0.5.2~92 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ad1e09939f6ee6db97e816bced8eaede31545587;p=fll 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. --- diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index 2cb22f45f..f0d86db21 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;