← Commit list

20f757ef14

Joshua Rogers
Joshua Rogers
2025-09-18
FAILED Duration: 159s

Subject

tool_cb_hdr: fix fwrite check in header callback

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+1 -1
@@ -116,7 +116,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
if(per->config->headerfile && heads->stream) {
size_t rc = fwrite(ptr, size, nmemb, heads->stream);
- if(rc != cb)
+ if(rc != nmemb)
return rc;
/* flush the stream to send off what we got earlier */
if(fflush(heads->stream)) {