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

This commit is contained in:
Thilo Schulz 2006-06-11 14:56:58 +00:00
parent d9fe81c08e
commit c9c15562ea

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);