Restore beck's rev 1.21: snprintf() was reviewed
authorguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 18:53:37 +0000 (18:53 +0000)
committerguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 18:53:37 +0000 (18:53 +0000)
lib/libcrypto/objects/obj_dat.c
lib/libssl/src/crypto/objects/obj_dat.c

index 9fa23ae..e31940d 100644 (file)
@@ -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);
index 9fa23ae..e31940d 100644 (file)
@@ -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);