From 61818a96b4336d7a78242659fc3eb507ee4bdbbc Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 9 Oct 2008 20:51:17 +0000 Subject: [PATCH] restrict text to 7bit ascii git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2870 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protocol.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/protocol.cpp b/source/src/protocol.cpp index b97cf9ac..5c21f9d4 100644 --- a/source/src/protocol.cpp +++ b/source/src/protocol.cpp @@ -80,6 +80,7 @@ void filtertext(char *dst, const char *src, bool whitespace, int len) { for(int c = *src; c; c = *++src) { + c &= 0x7F; // 7-bit ascii switch(c) { case '\f': ++src; continue;