Guarantees of gpg_strerror_r may not hold

Werner Koch wk at gnupg.org
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.


Salam-Shalom,

   Werner

-- 
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: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20221130/ef76d8d8/attachment.sig>


More information about the Gnupg-devel mailing list