From a212ea6fb40dab69a40f2ef5db0efe3ae9526301 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sat, 5 Sep 2009 11:25:06 +0000 Subject: Made Cvar_BitInfo strip non-printable characters just like Info_SetValueForKey does. --- source/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/q_shared.c') diff --git a/source/q_shared.c b/source/q_shared.c index 8706ddb..c349586 100644 --- a/source/q_shared.c +++ b/source/q_shared.c @@ -1240,7 +1240,7 @@ qboolean Info_SetValueForKey( char *s, const char *key, const char *value ) { while( *v ) { c = *v++; c &= 127; // strip high bits - if( c >= 32 && c < 127 ) + if( Q_isprint( c ) ) *s++ = c; } *s = 0; -- cgit v1.2.3