Restore tedu's rev 1.4: snprintf() was reviewed.
authorguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 19:55:09 +0000 (19:55 +0000)
committerguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 19:55:09 +0000 (19:55 +0000)
lib/libcrypto/ts/ts_rsp_sign.c
lib/libssl/src/crypto/ts/ts_rsp_sign.c

index 58d5864..17f81b4 100644 (file)
@@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
                   if the elements correspond to 0, they MUST be wholly
                   omitted, and the decimal point element also MUST be
                   omitted." */
-               snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
+               (void) snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
                /* truncate and trim trailing 0 */
                usecstr[precision + 1] = '\0';
                p = usecstr + strlen(usecstr) - 1;
index 58d5864..17f81b4 100644 (file)
@@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
                   if the elements correspond to 0, they MUST be wholly
                   omitted, and the decimal point element also MUST be
                   omitted." */
-               snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
+               (void) snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
                /* truncate and trim trailing 0 */
                usecstr[precision + 1] = '\0';
                p = usecstr + strlen(usecstr) - 1;