lib: fix some format specifiers

- Use CURL_FORMAT_CURL_OFF_T where %zd was erroneously used for some
  curl_off_t variables.

- Use %zu where %zd was erroneously used for some size_t variables.

Prior to this change some of the Windows CI tests were failing because
in Windows 32-bit targets have a 32-bit size_t and a 64-bit curl_off_t.
When %zd was used for some curl_off_t variables then only the lower
32-bits was read and the upper 32-bits would be read for part or all of
the next specifier.

Fixes https://github.com/curl/curl/issues/11327
Closes https://github.com/curl/curl/pull/11321
11 files changed
tree: 01ca815b7d252fb5ba13999bf75edf757bfa6a9d
  1. .circleci/
  2. .github/
  3. .lift/
  4. .reuse/
  5. CMake/
  6. docs/
  7. include/
  8. lib/
  9. LICENSES/
  10. m4/
  11. packages/
  12. plan9/
  13. projects/
  14. scripts/
  15. src/
  16. tests/
  17. winbuild/
  18. .azure-pipelines.yml
  19. .cirrus.yml
  20. .dcignore
  21. .dir-locals.el
  22. .git-blame-ignore-revs
  23. .gitattributes
  24. .gitignore
  25. .mailmap
  26. acinclude.m4
  27. appveyor.yml
  28. buildconf
  29. buildconf.bat
  30. CHANGES
  31. CMakeLists.txt
  32. configure.ac
  33. COPYING
  34. curl-config.in
  35. GIT-INFO
  36. libcurl.pc.in
  37. MacOSX-Framework
  38. Makefile.am
  39. Makefile.dist
  40. maketgz
  41. README
  42. README.md
  43. RELEASE-NOTES
  44. SECURITY.md
README.md

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.