diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-09-05 11:25:06 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-09-05 11:25:06 +0000 |
commit | a212ea6fb40dab69a40f2ef5db0efe3ae9526301 (patch) | |
tree | 14233b4794c5baa61fef0dadd3b06cd6970952a0 /source/q_shared.c | |
parent | a63351b924daa288b120af78607434ca5acc60d8 (diff) |
Made Cvar_BitInfo strip non-printable characters just like Info_SetValueForKey does.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r-- | source/q_shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |