Guarantees of gpg_strerror_r may not hold

Werner Koch wk at
Wed Nov 30 13:44:12 CET 2022

On Wed, 30 Nov 2022 12:38, NIIBE Yutaka said:

> +      snprintf (buf, buflen, "strerror_r failed: %i\n", r);

May I suggest to use

         snprintf (buf, buflen, "[errno=%i]\n", r);

Sich bracketed error messages are often used if there is a problem wit
the error message.



The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-devel mailing list