From 21db0e1afdcf17a189ebe49af3506551b108a2f2 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 2 Apr 2018 10:35:29 +0200 Subject: [PATCH] Remove an unnecessary cast in the param to BUF_MEM_grow Reviewed-by: Rich Salz Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/5826) --- apps/asn1pars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/asn1pars.c b/apps/asn1pars.c index 062e19644e..f1756c1fdb 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -205,7 +205,7 @@ int asn1parse_main(int argc, char **argv) num = 0; for (;;) { - if (!BUF_MEM_grow(buf, (int)num + BUFSIZ)) + if (!BUF_MEM_grow(buf, num + BUFSIZ)) goto end; i = BIO_read(in, &(buf->data[num]), BUFSIZ); if (i <= 0) -- 2.25.1