From: Kevin Day Date: Wed, 30 Aug 2023 01:54:32 +0000 (-0500) Subject: Cleanup: Add comment to help clarify the size * 2 logic. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=6c15d514aa52caa1200308a36eca959f1829c532;p=fll Cleanup: Add comment to help clarify the size * 2 logic. This will comment should help future proof accidental incorrect changes to this value. --- diff --git a/level_2/fll_execute/c/execute.c b/level_2/fll_execute/c/execute.c index 5fb1d71..bc7c5e9 100644 --- a/level_2/fll_execute/c/execute.c +++ b/level_2/fll_execute/c/execute.c @@ -48,6 +48,7 @@ extern "C" { #endif // _di_level_2_parameter_checking_ { + // Allocate "size * 2" to ensure space for both th name and value are available. f_status_t status = f_memory_array_increase_by(size * 2, sizeof(f_string_dynamic_t), (void **) &arguments->array, &arguments->used, &arguments->size); for (f_number_unsigned_t i = 0; i < size; ++i) {