Fix the missing final character in the server browser.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3338 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-08-01 13:29:52 +00:00
parent fb95c21dcd
commit 3fb15701b1
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ void Draw_FunStringLen(int x, int y, unsigned char *str, int numchars)
{
conchar_t buffer[2048];
//so parsefunstring can write out the null
numchars++;
numchars *= sizeof(conchar_t); //numchars should now be the size of the chars.
if (numchars > sizeof(buffer))