[PATCH v1 2/2] crypt.c: Fix allocation size calculation
Alejandro Colomar via Mutt-dev <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <1031be98373b798bbf8586f8fdb4b16d0858d957.1770936654.git.alx@kernel.org> |
Fixes: b423ebbfa9d2 (1999-01-04, "Make the experimental branch the main trunk.") Link: <https://github.com/neomutt/neomutt/pull/4294> Cc: Oswald Buddenhagen <[email protected]> Cc: Pietro Cerutti <[email protected]> Cc: Richard Russon <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]> Cherry-picked-from: neomutt.git 3cba64098487 (2024-05-10, "ncrypt/crypt.c: Fix allocation size calculation") Link: <https://github.com/neomutt/neomutt/pull/4297> [alx: Adapted diff and message to mutt(1)] Signed-off-by: Alejandro Colomar <[email protected]> --- 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