Loading src/tool_cb_dbg.c +12 −10 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_HEADER_OUT: if(size > 0) { for(i = 0; i < size - 1; i++) { if(data[i] == '\n') { /* LF */ if(!newl) { Loading @@ -121,6 +122,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type, if(!newl) fprintf(output, "%s%s ", timebuf, s_infotype[type]); (void)fwrite(data + st, i - st + 1, 1, output); } newl = (size && (data[size - 1] != '\n')) ? TRUE : FALSE; traced_data = FALSE; break; Loading Loading
src/tool_cb_dbg.c +12 −10 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_HEADER_OUT: if(size > 0) { for(i = 0; i < size - 1; i++) { if(data[i] == '\n') { /* LF */ if(!newl) { Loading @@ -121,6 +122,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type, if(!newl) fprintf(output, "%s%s ", timebuf, s_infotype[type]); (void)fwrite(data + st, i - st + 1, 1, output); } newl = (size && (data[size - 1] != '\n')) ? TRUE : FALSE; traced_data = FALSE; break; Loading