diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-02-20 16:23:05 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-02-20 16:23:05 -0500 |
commit | 2ac3f427f77204c99d1412523670e8606aff821e (patch) | |
tree | 46efdf281ddd4bc1d9161e9c1ea93b59f1aef85b /docs | |
parent | 91cfcc5d6f305fea08674cf39c5882fff2ae2f12 (diff) |
CURLOPT_DEBUGFUNCTION.3: Fix example
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 index 9079ff2d0..bf07499a0 100644 --- a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 @@ -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 */ } |