mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
Segfault fixed. Yes, I know I'm stupid ;P
This commit is contained in:
parent
af98ae5fa5
commit
ab1aadfe64
1 changed files with 4 additions and 4 deletions
|
@ -1242,10 +1242,10 @@ void M_SEdit_Key (int key) {
|
|||
break;
|
||||
case K_ENTER:
|
||||
c = SL_Get_By_Num(slist,m_multip_cursor);
|
||||
free(c->server);
|
||||
free(c->desc);
|
||||
c->server = malloc(strlen(serv) + 1);
|
||||
c->desc = malloc(strlen(desc) + 1);
|
||||
Z_Free(c->server);
|
||||
Z_Free(c->desc);
|
||||
c->server = Z_Malloc(strlen(serv) + 1);
|
||||
c->desc = Z_Malloc(strlen(desc) + 1);
|
||||
strcpy(c->server,serv);
|
||||
strcpy(c->desc,desc);
|
||||
M_Menu_MultiPlayer_f ();
|
||||
|
|
Loading…
Reference in a new issue