From 2ac3f427f77204c99d1412523670e8606aff821e Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sat, 20 Feb 2016 16:23:05 -0500 Subject: CURLOPT_DEBUGFUNCTION.3: Fix example --- docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/libcurl') 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 */ } -- cgit v1.2.3