Merge branch 'fix-buffer-overflow-dedicated' into 'next'

Fix buffer overflow when registering a dedicated build server on MS

See merge request STJr/SRB2!2525
This commit is contained in:
Lactozilla 2024-10-07 19:25:10 +00:00
commit 987d2ee59a

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);