← Commit list

0209e087c6

Daniel Stenberg
Daniel Stenberg
2025-09-20
FAILED Duration: 149s

Subject

tool_cb_hdr: size is always 1

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_cb_hdr.c+3 -1
@@ -81,6 +81,8 @@ fail:
/*
** callback for CURLOPT_HEADERFUNCTION
+*
+* 'size' is always 1
*/
size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
{
@@ -164,7 +166,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
}
#endif
- fwrite(etag_h, size, etag_length, etag_save->stream);
+ fwrite(etag_h, 1, etag_length, etag_save->stream);
/* terminate with newline */
fputc('\n', etag_save->stream);
(void)fflush(etag_save->stream);