summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/objects/obj_dat.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-04-19 11:43:07 +0000
committerguenther <guenther@openbsd.org>2014-04-19 11:43:07 +0000
commit5359f6d5b69575fb59707ce20998f2081c7d7a2f (patch)
treee9a611e854facc97a27c86e86112b35da87d7daf /lib/libcrypto/objects/obj_dat.c
parentthese strlcpy can't truncate, the copy is from a buffer to a buffer of same (diff)
downloadwireguard-openbsd-5359f6d5b69575fb59707ce20998f2081c7d7a2f.tar.xz
wireguard-openbsd-5359f6d5b69575fb59707ce20998f2081c7d7a2f.zip
We'll interpret a (void) cast on snprintf() to mean it's been verified that
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
Diffstat (limited to 'lib/libcrypto/objects/obj_dat.c')
-rw-r--r--lib/libcrypto/objects/obj_dat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c
index b3388b117d1..cc007f1206f 100644
--- a/lib/libcrypto/objects/obj_dat.c
+++ b/lib/libcrypto/objects/obj_dat.c
@@ -594,7 +594,7 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
}
else
{
- (void) snprintf(tbuf,sizeof tbuf,".%lu",l);
+ snprintf(tbuf,sizeof tbuf,".%lu",l);
i=strlen(tbuf);
if (buf && (buf_len > 0))
{