Fix buffer overflow when registering a dedicated build server on MS

This commit is contained in:
Gustaf Alhäll 2024-09-29 21:40:17 +02:00
parent 68f40d8a64
commit 6dbcd2ba19

View file

@ -157,7 +157,7 @@ void I_wake_all_cond(I_cond *anchor)
pthread_mutex_lock(&thread_lock);
if (*anchor == NULL)
{
*anchor = malloc(sizeof(pthread_t));
*anchor = malloc(sizeof(pthread_cond_t));
pthread_cond_init(*anchor, NULL);
}
pthread_mutex_unlock(&thread_lock);