projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cfcc5
)
CURLOPT_DEBUGFUNCTION.3: Fix example
author
Jay Satiro
<raysatiro@yahoo.com>
Sat, 20 Feb 2016 21:23:05 +0000
(16:23 -0500)
committer
Jay Satiro
<raysatiro@yahoo.com>
Sat, 20 Feb 2016 21:23:05 +0000
(16:23 -0500)
docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
patch
|
blob
|
history
diff --git
a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
index 9079ff2d0699cde3a33f153e61e3cb7fa23660e2..bf07499a081ff14443f36b1d7001a64820b6c94a 100644
(file)
--- 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 */
}