Re: [PATCH v1 2/2] crypt.c: Fix allocation size calculation

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aY6YvxnElB3O0QiD@qinghai>
On Thu, Feb 12, 2026 at 11:56:21PM +0100, Alejandro Colomar via Mutt-dev wrote:
>Fixes: b423ebbfa9d2 (1999-01-04, "Make the experimental branch the main trunk.")

Looks fine to me.  May I apply this one by itself and wait for a little 
more discussion on PATCH 1/2?

>---
> crypt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/crypt.c b/crypt.c
>index 47a7185a2bd5..cc6c376deadc 100644
>--- a/crypt.c
>+++ b/crypt.c
>@@ -1029,7 +1029,7 @@ static void crypt_fetch_signatures (BODY ***signatures, BODY *a, int *n)
>     else
>     {
>       if ((*n % 5) == 0)
>-        safe_realloc (signatures, (*n + 6) * sizeof (BODY **));
>+        safe_realloc (signatures, (*n + 6) * sizeof (BODY *));
>
>       (*signatures)[(*n)++] = a;
>     }
>-- 
>2.51.0
>

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmOmL8ACgkQre92hIAx
a9qLSBAAvUCASr9B5ZlDnqBnHAFW6UKIYhRI8t16CnypHkt4eKnCgZ7mr24RBrfV
1Erj4nuL2QRcPGTntukas9fo3bpW/IRFjuCJJq+0fIh6NYUEg4UPlZrOE5PL57Vt
QTiyRuGN8p/9vA0LxsQUVwEP18G47gX6jEcfu2sEKJTbo9pqkSFsXMADYlrSHhaW
DKBxGVWI4wHk0T6otK2JoSIHeFc9rpKj1rS2n7rV1l127ZvoKl7ZeWKZ2pOnP131
EuN/X2guZ6NuvFD113le0olOcUhp53y5BZvUStLdS23xHzk7YpBjr6z5zRqrU3C4
Iv0IpPOedNQIbY6cD3zu/GBH0hi0+09PUKrCtOVWfT5GygBwlOyAnzpci4yQBKWe
r3s/+FEKVURldgkT8x9dv4wr1YD+OTGIm+Tt4cfSCLPFbzsqOeuUC+FNco/cdgJB
tWizkGKlcX7Ct+wlcn83UPYs7fcOhF8RvJIdP//fF8933a2mKLPi3VUyHRb8EWxI
qwXWk5ahhKr48wcM94t2sHDmZek+Ak+AC+iZKlqOrb28EO6s+jl6PdkVq+ymfWv4
q3tjW4gKdQW1mAUV36NOraXNldn4fkUFp8J1DxfGeYBwLsM3FDSI9CFTxdRdQHss
XirTLlMNvOMm9mSfb6WhWtGKbZi3FWorP6COotTdDg8CbY0Ag1E=
=VNmN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.