Skip to content
Snippets Groups Projects
Commit 5a07305d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent 56c0c67d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment