summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-02-20 16:23:05 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-02-20 16:23:05 -0500
commit2ac3f427f77204c99d1412523670e8606aff821e (patch)
tree46efdf281ddd4bc1d9161e9c1ea93b59f1aef85b
parent91cfcc5d6f305fea08674cf39c5882fff2ae2f12 (diff)
downloadcurl-2ac3f427f77204c99d1412523670e8606aff821e.tar.gz
CURLOPT_DEBUGFUNCTION.3: Fix example
-rw-r--r--docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.36
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 */
}