From e82a7d88686174d7b20b5aaf8d291f7cd6894ef7 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 20 Jul 2023 21:57:50 -0500 Subject: [PATCH] Bugfix: Incorrect sizeof() values for f_thread_mutex_attribute functions and f_thread_lock functions. The wrong sizeof types are being used. This is likely a copy and paste error. --- level_0/f_thread/c/private-thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/level_0/f_thread/c/private-thread.c b/level_0/f_thread/c/private-thread.c index c3c37eb..ded9821 100644 --- a/level_0/f_thread/c/private-thread.c +++ b/level_0/f_thread/c/private-thread.c @@ -447,7 +447,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_adjust(attributes->size, length, sizeof(f_thread_lock_t), (void **) & attributes->array); + status = f_memory_adjust(attributes->size, length, sizeof(f_thread_lock_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -471,7 +471,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_resize(attributes->size, length, sizeof(f_thread_lock_t), (void **) & attributes->array); + status = f_memory_resize(attributes->size, length, sizeof(f_thread_lock_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -575,7 +575,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_adjust(attributes->size, length, sizeof(f_thread_mutex_t), (void **) & attributes->array); + status = f_memory_adjust(attributes->size, length, sizeof(f_thread_mutex_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -599,7 +599,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_resize(attributes->size, length, sizeof(f_thread_mutex_t), (void **) & attributes->array); + status = f_memory_resize(attributes->size, length, sizeof(f_thread_mutex_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; -- 1.8.3.1