Fix client "freezes" if a user with ASCII characters > 127 enters a server. Reported by tjw

This commit is contained in:
Thilo Schulz committed 2006-06-11 14:56:58 +00:00
1 parent d9fe81c08e
commit c9c15562ea
1 file changed
+5
+5
View File
@@ -492,6 +492,11 @@ char *MSG_ReadStringLine( msg_t *msg ) {
if ( c == '%' ) {
c = '.';
}
// don't allow higher ascii values
if ( c > 127 ) {
c = '.';
}
string[l] = c;
l++;
} while (l < sizeof(string)-1);