From: guenther Date: Sun, 20 Apr 2014 18:53:37 +0000 (+0000) Subject: Restore beck's rev 1.21: snprintf() was reviewed X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=12697c6fe296ba3541b4d2cd315367da35fe9791;p=openbsd Restore beck's rev 1.21: snprintf() was reviewed --- 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);