From: Jay Satiro Date: Sat, 20 Feb 2016 21:23:05 +0000 (-0500) Subject: CURLOPT_DEBUGFUNCTION.3: Fix example X-Git-Tag: curl-7_48_0~119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ac3f427f77204c99d1412523670e8606aff821e;p=thirdparty%2Fcurl.git CURLOPT_DEBUGFUNCTION.3: Fix example --- diff --git a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 index 9079ff2d06..bf07499a08 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 */ }