summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pem
diff options
context:
space:
mode:
authormiod <>2015-07-19 18:29:31 +0000
committermiod <>2015-07-19 18:29:31 +0000
commita24b14b6bf2c04501ea84182a52caa5bf2ae7635 (patch)
tree7d71f138b5b5706a448942547e5154bd651f174c /src/lib/libcrypto/pem
parent7fa3eebdfe6c452f7df52bcda90cfe95b4b1e6ce (diff)
downloadopenbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.tar.gz
openbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.tar.bz2
openbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.zip
Drop stupid (int) casts for the arguments of malloc() and friends. This is
not 16-bit MS-DOS anymore. ok bcook@ tedu@
Diffstat (limited to 'src/lib/libcrypto/pem')
-rw-r--r--src/lib/libcrypto/pem/pem_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c
index 221b308d71..6f8759a9ee 100644
--- a/src/lib/libcrypto/pem/pem_lib.c
+++ b/src/lib/libcrypto/pem/pem_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pem_lib.c,v 1.40 2015/07/16 02:14:48 miod Exp $ */ 1/* $OpenBSD: pem_lib.c,v 1.41 2015/07/19 18:29:31 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -370,7 +370,7 @@ PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x,
370 } 370 }
371 /* dzise + 8 bytes are needed */ 371 /* dzise + 8 bytes are needed */
372 /* actually it needs the cipher block size extra... */ 372 /* actually it needs the cipher block size extra... */
373 data = malloc((unsigned int)dsize + 20); 373 data = malloc(dsize + 20);
374 if (data == NULL) { 374 if (data == NULL) {
375 PEMerr(PEM_F_PEM_ASN1_WRITE_BIO, ERR_R_MALLOC_FAILURE); 375 PEMerr(PEM_F_PEM_ASN1_WRITE_BIO, ERR_R_MALLOC_FAILURE);
376 goto err; 376 goto err;