diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-10 11:25:14 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-10 11:25:14 +0000 |
commit | d190b5a8e066d2d417ad1fcf416748ae6e14b456 (patch) | |
tree | b428160706d4041f88ead747b2aea69d37b016bb /lib/libcrypto/asn1/a_bytes.c | |
parent | 9072f454e714a7c50c24423c94d84ec5a15d002e (diff) |
delete some casts. ok miod
Diffstat (limited to 'lib/libcrypto/asn1/a_bytes.c')
-rw-r--r-- | lib/libcrypto/asn1/a_bytes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/asn1/a_bytes.c b/lib/libcrypto/asn1/a_bytes.c index 61910be5fe1..abe6030750a 100644 --- a/lib/libcrypto/asn1/a_bytes.c +++ b/lib/libcrypto/asn1/a_bytes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_bytes.c,v 1.15 2014/07/09 22:55:17 tedu Exp $ */ +/* $OpenBSD: a_bytes.c,v 1.16 2014/07/10 11:25:13 tedu Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -99,12 +99,12 @@ d2i_ASN1_type_bytes(ASN1_STRING **a, const unsigned char **pp, ret = (*a); if (len != 0) { - s = malloc((int)len + 1); + s = malloc(len + 1); if (s == NULL) { i = ERR_R_MALLOC_FAILURE; goto err; } - memcpy(s, p, (int)len); + memcpy(s, p, len); s[len]='\0'; p += len; } else @@ -211,7 +211,7 @@ d2i_ASN1_bytes(ASN1_STRING **a, const unsigned char **pp, } } else s = ret->data; - memcpy(s, p, (int)len); + memcpy(s, p, len); s[len] = '\0'; p += len; } else { |