1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-21 18:30:15 -04:00

accounted for some race conditions

This commit is contained in:
nova
2025-09-29 21:40:35 +02:00
parent 4d9dc46691
commit b32848ad3d
2 changed files with 36 additions and 8 deletions

View File

@@ -315,6 +315,7 @@ void *thread_btm(){
btm_buffer[offset_back - 2] = size_unit[(unsigned)size_index];
offset_back -= strlen(float_str) + 2;
memcpy(btm_buffer + offset_back, float_str, strlen(float_str));
free(path);
pthread_mutex_unlock(&mutex_btm);
}