Commit 2ac3f427 authored by Jay Satiro's avatar Jay Satiro
Browse files

CURLOPT_DEBUGFUNCTION.3: Fix example

parent 91cfcc5d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 */
  }