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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user