From 12697c6fe296ba3541b4d2cd315367da35fe9791 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 20 Apr 2014 18:53:37 +0000 Subject: [PATCH] Restore beck's rev 1.21: snprintf() was reviewed --- lib/libcrypto/objects/obj_dat.c | 2 +- lib/libssl/src/crypto/objects/obj_dat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 9fa23ae9160..e31940da45e 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -591,7 +591,7 @@ OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) n += i; free(bndec); } else { - snprintf(tbuf, sizeof tbuf, ".%lu", l); + (void) snprintf(tbuf, sizeof tbuf, ".%lu", l); i = strlen(tbuf); if (buf && (buf_len > 0)) { strlcpy(buf, tbuf, buf_len); diff --git a/lib/libssl/src/crypto/objects/obj_dat.c b/lib/libssl/src/crypto/objects/obj_dat.c index 9fa23ae9160..e31940da45e 100644 --- a/lib/libssl/src/crypto/objects/obj_dat.c +++ b/lib/libssl/src/crypto/objects/obj_dat.c @@ -591,7 +591,7 @@ OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) n += i; free(bndec); } else { - snprintf(tbuf, sizeof tbuf, ".%lu", l); + (void) snprintf(tbuf, sizeof tbuf, ".%lu", l); i = strlen(tbuf); if (buf && (buf_len > 0)) { strlcpy(buf, tbuf, buf_len); -- 2.20.1