Stat strings will actually be received properly now.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2988 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-05-31 10:33:03 +00:00
parent eafb021179
commit f63468f1d7
1 changed files with 2 additions and 1 deletions

View File

@ -3254,7 +3254,8 @@ void CL_SetStatString (int pnum, int stat, char *value)
{
if (cl.statsstr[pnum][stat])
Z_Free(cl.statsstr[pnum][stat]);
cl.statsstr[pnum][stat] = Z_Malloc(strlen(value));
cl.statsstr[pnum][stat] = Z_Malloc(strlen(value)+1);
strcpy(cl.statsstr[pnum][stat], value);
}
}
/*