]> Kevux Git Server - fll/commitdiff
Regression: Follow up to invalid type used when allocating string, f_string_t should...
authorKevin Day <kevin@kevux.org>
Sun, 6 Aug 2023 02:54:46 +0000 (21:54 -0500)
committerKevin Day <kevin@kevux.org>
Sun, 6 Aug 2023 02:54:46 +0000 (21:54 -0500)
I missed the save button on this file and this change did not get committed.

level_0/f_string/c/string/private-dynamics.c

index 5b685d848fc602280d33de737fb5cb87b3060bd8..690e82454cc14455512358a259808670f07289ab 100644 (file)
@@ -76,7 +76,7 @@ extern "C" {
 
     for (f_number_unsigned_t i = length; i < structure->size; ++i) {
 
-      status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
+      status = f_memory_array_resize(0, sizeof(f_char_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
       if (F_status_is_error(status)) return status;
     } // for