mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
urk, I forgot Info_ParseString uses Hunk_TempAlloc :/
This commit is contained in:
parent
6c2145f9b5
commit
54ddb94132
1 changed files with 2 additions and 1 deletions
|
@ -698,7 +698,7 @@ SL_CheckStatus (const char *cs_from, const char *cs_data)
|
|||
if (strcmp (cs_from, temp->server) == 0)
|
||||
{
|
||||
int i;
|
||||
char *data = Hunk_TempAlloc (strlen (cs_data) + 1);
|
||||
char *data = strdup (cs_data);
|
||||
strcpy (data, cs_data);
|
||||
for (i = 0; i < strlen(data); i++)
|
||||
if (data[i] == '\n') {
|
||||
|
@ -717,6 +717,7 @@ SL_CheckStatus (const char *cs_from, const char *cs_data)
|
|||
temp->desc = realloc(temp->desc, strlen(data) + 1);
|
||||
strcpy(temp->desc, data);
|
||||
}
|
||||
free (data);
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue