diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-04-02 10:35:29 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-04-03 16:02:17 +0200 |
commit | 21db0e1afdcf17a189ebe49af3506551b108a2f2 (patch) | |
tree | 41c19675ba554df2ac1135c7dc631483a71a216e /apps/asn1pars.c | |
parent | 16e1eea6a67c85c9d786f3c4448182b1aca101b8 (diff) |
Remove an unnecessary cast in the param to BUF_MEM_grow
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5826)
Diffstat (limited to 'apps/asn1pars.c')
-rw-r--r-- | apps/asn1pars.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |