mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 00:40:52 +00:00
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:
commit
987d2ee59a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue