diff options
author | miod <> | 2015-07-19 18:29:31 +0000 |
---|---|---|
committer | miod <> | 2015-07-19 18:29:31 +0000 |
commit | 243442e0f6d87748dcaccc2d2d3bf5605be3e3a9 (patch) | |
tree | 7d71f138b5b5706a448942547e5154bd651f174c /src/lib/libcrypto/pem | |
parent | 7adb4eeffce8c01c0c9ae40701483cf6eb71d9de (diff) | |
download | openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.tar.gz openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.tar.bz2 openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.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.c | 4 |
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; |