]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl-quic: fix printf mask
authorViktor Szakats <commit@vsz.me>
Sun, 20 Apr 2025 08:08:00 +0000 (10:08 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 20 Apr 2025 11:50:57 +0000 (13:50 +0200)
Fixes:
```
lib/vquic/curl_osslq.c:835:25: error: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'curl_off_t' {aka 'long long int'} [-Werror=format=]
  835 |   CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%zd",
      |                         ^~~~
  836 |               stream->s.id, buflen, stream->download_recvd);
      |                                     ~~~~~~~~~~~~~~~~~~~~~~
      |                                           |
      |                                           curl_off_t {aka long long int}
```

Closes #17106

lib/vquic/curl_osslq.c

index 824ae62ff6c54a62c43b99284345602a7ecb1749..6d1f85e3d554bb43034e1fa1c8520925cd9263f6 100644 (file)
@@ -832,7 +832,7 @@ static int cb_h3_recv_data(nghttp3_conn *conn, int64_t stream3_id,
     return NGHTTP3_ERR_CALLBACK_FAILURE;
   }
   stream->download_recvd += (curl_off_t)buflen;
-  CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%zd",
+  CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%" FMT_OFF_T,
               stream->s.id, buflen, stream->download_recvd);
   h3_drain_stream(cf, data);
   return 0;