From 3fb15701b1603fed9897b38c985ffcca9f06a1e3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 1 Aug 2009 13:29:52 +0000 Subject: [PATCH] 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 --- engine/client/sbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/sbar.c b/engine/client/sbar.c index 1a503d62f..715d39263 100644 --- a/engine/client/sbar.c +++ b/engine/client/sbar.c @@ -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))