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

Alejandro Colomar via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aY8m56rDFXOlXUZu@devuan>
Hi Kevin,

On 2026-02-13T11:21:35+0800, Kevin J. McCarthy wrote:
> 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?

Sure; thanks!  BTW, would you mind amending to have a semicolon instead
of a comma after the date?


Have a lovely day!
Alex

> 
> > ---
> > 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



-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmmPJwkACgkQ64mZXMKQ
wqmrpxAAvu4XNzCnwrPm3M58CKVQnMhiVg7IaD2VAjgUvkF4UtWWrj0ujAMQH11w
1dDcYsTwB+tx4GuaGz/DIkO4ioio3OCn6EXo2AbGRZrVEG3m2lwiUUOTLyVMCu0j
DWLNj8GGt++GX+4HWCfNUBC4Xfss5Lp9GlESGQrAqlHcFN3+LU9RX/OM48qRI65Y
bvTGmbPpGjQq017eJJPZX4EY6zp+tCiM3MkVBDNAkAqaQI0+tcVpSf9dIcYxTr6m
cnobHIAz/RrBHzZHoStMvHj7IPnFjo43KWdjXeMfO9lRWl3GgugKRnliY0Tuh2vA
DW6newvvJ1QK1bZ0ljrHJnrVtTp7q2vhnY8aT+PRIO8sEq/QTxlqvho+/ewE18oG
pA7/0Xyvcl9nMhckoUtqi0j0PGJ7hPEXynz/4aA60PJLTvMdC5jtN4CJrpibivbJ
tZakF75eo0s9gK/clAxjLuqCHPyVDXM2W9DTlfL2Ol7wwKqbagYFUE99jec4fS1V
JXXEqlk+zmkKs6uA6dh9fN8L4pY8pZCD0PJ5TBc+ZnZ/w1iFM4Mmds8OvWyVsMq4
Wf2aSv+f1XdoIJ+YvSqpRe60633D3EumEJTOLE9ut418ocPeNiimUSQTJXztO4dq
3sMMBs1ZNl55r4tHgULbwaA7GFNSRx/qSUku0RH0g3+QynyL3K8=
=VSlv
-----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.