From 3533e7f840c5d852f98372f2dd9c9066cc53c85e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 5 Aug 2023 21:54:46 -0500 Subject: [PATCH] Regression: Follow up to invalid type used when allocating string, f_string_t should instead be f_char_t. I missed the save button on this file and this change did not get committed. --- level_0/f_string/c/string/private-dynamics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_string/c/string/private-dynamics.c b/level_0/f_string/c/string/private-dynamics.c index 5b685d8..690e824 100644 --- a/level_0/f_string/c/string/private-dynamics.c +++ b/level_0/f_string/c/string/private-dynamics.c @@ -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 -- 1.8.3.1