aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-15 15:36:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-15 15:36:41 +0000
commit5a07305dc837f7c226fe18142653f012e07a3270 (patch)
tree34035e1f5e73360d10f028dc028ffc1dc27704a4 /lib
parent56c0c67dff7935f5c5d9061a6e67a45946ed7768 (diff)
not printf()ing %s normally for character that weren't isprint() made things
go weird, had to remove this. I should use trio soon for all the *printf() stuff as this is too broken
Diffstat (limited to 'lib')
-rw-r--r--lib/mprintf.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 7ccbcbf81..64d2360d2 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;