summaryrefslogtreecommitdiff
path: root/source/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/common.c')
-rw-r--r--source/common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/common.c b/source/common.c
index e3bf26d..16b276d 100644
--- a/source/common.c
+++ b/source/common.c
@@ -241,7 +241,12 @@ static void logfile_write( const char *string ) {
}
c = *string++;
- c &= 127;
+ if( c & 128 ) {
+ c &= 127;
+ if( c < 32 ) {
+ continue;
+ }
+ }
if( c == '\n' ) {
com_logNewline = qtrue;
}