[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-devel
Subject:    Re: Guarantees of gpg_strerror_r may not hold
From:       Werner Koch via Gnupg-devel <gnupg-devel () gnupg ! org>
Date:       2022-11-30 12:44:12
Message-ID: 87r0xkhasj.fsf () wheatstone ! g10code ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["openpgp-digital-signature.asc" (application/pgp-signature)]

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic