]> Kevux Git Server - fll/commitdiff
Bugfix: The f_environment_max_length should be f_environment_max_length_d.
authorKevin Day <thekevinday@gmail.com>
Fri, 9 Dec 2022 02:44:08 +0000 (20:44 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 9 Dec 2022 02:44:08 +0000 (20:44 -0600)
This is a mistake and should have been f_environment_max_length_d the entire time.

level_0/f_environment/c/environment.c
level_0/f_environment/c/environment/common.h
level_3/fake/c/private-build-load.c

index 64b186641880ae564c37c8c39e678abacc52b55c..66bf895f1c809da7cf23ad623ce0b529a423c49f 100644 (file)
@@ -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);
index d5c29932bca7eb2879a43552e37360031a9ea99b..2ba0e7956952b156ee0ae7dadb7a450f8db16243 100644 (file)
@@ -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
index 1fdf9fec8e61fd47a35184917554ce3c0e5f5a43..294c9dfd044da0a3c45bf9349bafc75074dd113b 100644 (file)
@@ -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);