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:
parent
91cfcc5d6f
commit
2ac3f427f7
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user