fixed crash in the text parser (amb718)
authorDavid Anderson <dvander@alliedmods.net>
Fri Aug 03 11:44:51 2007 +0000 (2007-08-03)
changeset 12608345fc11a0f6
parent 1259 472c5e61cdc8
child 1261 b8062e3158f6
fixed crash in the text parser (amb718)
core/TextParsers.cpp
     1.1 --- a/core/TextParsers.cpp	Fri Aug 03 11:40:21 2007 +0000
     1.2 +++ b/core/TextParsers.cpp	Fri Aug 03 11:44:51 2007 +0000
     1.3 @@ -216,7 +216,10 @@
     1.4  		}
     1.5  	}
     1.6  
     1.7 -	*(data.end) = '\0';
     1.8 +	if (data.end)
     1.9 +	{
    1.10 +		*(data.end) = '\0';
    1.11 +	}
    1.12  
    1.13  	return data.ptr;
    1.14  }