1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

CURLOPT_DEBUGFUNCTION.3: Fix example

This commit is contained in:
Jay Satiro 2016-02-20 16:23:05 -05:00
parent 91cfcc5d6f
commit 2ac3f427f7

View File

@ -103,8 +103,10 @@ void dump(const char *text,
}
/* show data on the right */
for(c = 0; (c < width) && (i+c < size); c++)
fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream);
for(c = 0; (c < width) && (i+c < size); c++) {
char x = (ptr[i+c] >= 0x20 && ptr[i+c] < 0x80) ? ptr[i+c] : '.';
fputc(x, stream);
}
fputc('\\n', stream); /* newline */
}