From b43acc0b2a6f143e3a5e87e97b71692477279db8 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 8 Dec 2022 20:44:08 -0600 Subject: [PATCH] Bugfix: The f_environment_max_length should be f_environment_max_length_d. This is a mistake and should have been f_environment_max_length_d the entire time. --- level_0/f_environment/c/environment.c | 2 +- level_0/f_environment/c/environment/common.h | 2 +- level_3/fake/c/private-build-load.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/level_0/f_environment/c/environment.c b/level_0/f_environment/c/environment.c index 64b1866..66bf895 100644 --- a/level_0/f_environment/c/environment.c +++ b/level_0/f_environment/c/environment.c @@ -49,7 +49,7 @@ extern char **environ; return F_exist_not; } - const f_array_length_t size = strnlen(result, f_environment_max_length); + const f_array_length_t size = strnlen(result, f_environment_max_length_d); if (size) { const f_status_t status = f_string_dynamic_increase_by(size + 1, value); diff --git a/level_0/f_environment/c/environment/common.h b/level_0/f_environment/c/environment/common.h index d5c2993..2ba0e79 100644 --- a/level_0/f_environment/c/environment/common.h +++ b/level_0/f_environment/c/environment/common.h @@ -20,7 +20,7 @@ extern "C" { * Environment related defines. */ #ifndef _di_f_environment_defines_ - #define f_environment_max_length F_string_t_size_d + #define f_environment_max_length_d F_string_t_size_d #endif // _di_f_environment_defines_ #ifdef __cplusplus diff --git a/level_3/fake/c/private-build-load.c b/level_3/fake/c/private-build-load.c index 1fdf9fe..294c9df 100644 --- a/level_3/fake/c/private-build-load.c +++ b/level_3/fake/c/private-build-load.c @@ -42,7 +42,7 @@ extern "C" { } if (environment->used + data_build->setting.environment.used > environment->size) { - if (environment->used + data_build->setting.environment.used > f_environment_max_length) { + if (environment->used + data_build->setting.environment.used > f_environment_max_length_d) { if (data->main->error.verbosity != f_console_verbosity_quiet_e) { flockfile(data->main->error.to.stream); -- 1.8.3.1