diff --git a/lib/mprintf.c b/lib/mprintf.c index 7ccbcbf81e8ed69033055f237e0bca8ad5887064..64d2360d2ef7dafd35272644d05e77d4e2ef9ae0 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -1035,16 +1035,9 @@ static int addbyter(int output, FILE *data) if(infop->length < infop->max) { /* only do this if we haven't reached max length yet */ - if (isprint(output) || isspace(output)) - { - infop->buffer[0] = (char)output; /* store */ - infop->buffer++; /* increase pointer */ - infop->length++; /* we are now one byte larger */ - } - else - { - return StoreNonPrintable(output, infop); - } + infop->buffer[0] = (char)output; /* store */ + infop->buffer++; /* increase pointer */ + infop->length++; /* we are now one byte larger */ return output; /* fputc() returns like this on success */ } return -1;