diff options
author | 2014-04-18 19:38:26 +0000 | |
---|---|---|
committer | 2014-04-18 19:38:26 +0000 | |
commit | afe7d0ac9632d5bf1a61d66f830a0dfd8d236826 (patch) | |
tree | 0bb3c0939dc753b1ad779a85ae2d14a1c9c2f35b /lib/libcrypto/objects/obj_dat.c | |
parent | remove bdes(1) so as to not encourage its use; if someone really (diff) | |
download | wireguard-openbsd-afe7d0ac9632d5bf1a61d66f830a0dfd8d236826.tar.xz wireguard-openbsd-afe7d0ac9632d5bf1a61d66f830a0dfd8d236826.zip |
Shrink a local buffer to the size it really needs to be; this is the only
discrepancy found while checking proper {HEX,DECIMAL}_SIZE macro usage, which
is confusing enough.
tweaks and ok jca@, ok guenther@
Diffstat (limited to 'lib/libcrypto/objects/obj_dat.c')
-rw-r--r-- | lib/libcrypto/objects/obj_dat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 641a97c8aa8..cf4db7c6b5c 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -469,7 +469,7 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) BIGNUM *bl; unsigned long l; const unsigned char *p; - char tbuf[DECIMAL_SIZE(i)+DECIMAL_SIZE(l)+2]; + char tbuf[DECIMAL_SIZE(l) + 1]; if ((a == NULL) || (a->data == NULL)) { buf[0]='\0'; |