mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 08:50:53 +00:00
Fix buffer overflow when registering a dedicated build server on MS
This commit is contained in:
parent
68f40d8a64
commit
6dbcd2ba19
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