diff options
Diffstat (limited to 'src/assuan-util.c')
-rw-r--r-- | src/assuan-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assuan-util.c b/src/assuan-util.c index a09982a..e746d1e 100644 --- a/src/assuan-util.c +++ b/src/assuan-util.c @@ -134,7 +134,7 @@ _assuan_log_print_buffer (FILE *fp, const void *buffer, size_t length) int n; for (n=length,s=buffer; n; n--, s++) - if (!isascii (*s) || iscntrl (*s) || !isprint (*s)) + if ((!isascii (*s) || iscntrl (*s) || !isprint (*s)) && !(*s >= 0x80)) break; s = buffer; @@ -198,7 +198,7 @@ _assuan_log_sanitized_string (const char *string) break; default: - if (isascii (*s) && isprint (*s)) + if ((isascii (*s) && isprint (*s)) || (*s >= 0x80)) putc_unlocked (*s, fp); else { |