Home GnuPG
Diffusion GPGME de6068450094

Fix printing size_t and off_t value for LLP64 Windows.

Description

Fix printing size_t and off_t value for LLP64 Windows.

* src/debug.h (_trace_sysres_off_t): Use 'z' length specifier.
* src/w32-io.c (_gpgme_io_read): Likewise.
(writer, _gpgme_io_write): Likewise.
  • GnuPG-bug-id: T7187
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Auditors
werner
Provenance
gniibeAuthored on Jul 5 2024, 6:49 AM
Parents
rM8b4171680c32: Remove ath.h and ath.c.
Branches
Unknown
Tags
Unknown
Tasks
T7187: gpgme: Debug output for size_t and off_t

Event Timeline

werner added a subscriber: werner.
werner added inline comments.
/src/debug.h
167

Hi!

Should that be "%zu" for a size_t and "%zd" is for ssize_t. However fprintf(1) doesn't distinguish that and our estream-printf.c neither. Interesting.

All concerns with this commit have now been addressed.Jul 5 2024, 8:54 AM