]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug in special character translation leading to console spam
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 Dec 2010 11:00:57 +0000 (11:00 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 Dec 2010 11:00:57 +0000 (11:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10686 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index d443dea45ce8ae3302701e4d78471523310bd33a..9856e8e3bf307bd482c6f3486447773e75991b26 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1127,7 +1127,7 @@ void Con_MaskPrint(int additionalmask, const char *msg)
                                                {
                                                        *p = qfont_table[ch - 0xE000];
                                                        if(q > p+1)
-                                                               memmove(p+1, q, strlen(q));
+                                                               memmove(p+1, q, strlen(q)+1);
                                                        p = p + 1;
                                                }
                                                else