From f63468f1d7b30e002892a73b17b12caa91245aa8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 31 May 2008 10:33:03 +0000 Subject: [PATCH] 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 --- engine/client/cl_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 711949466..86bde2e72 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -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); } } /*