summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2014-04-20 19:55:09 +0000
committerguenther <>2014-04-20 19:55:09 +0000
commit9f44a7fb6db3fa8a62c4f82fd0189435ddd05d63 (patch)
treefb8927a7bb7bebfb975fef7cf8a74e8a05e602e7 /src
parent9c5635ba0f7cd692be50180ceb10e60e48047d2d (diff)
downloadopenbsd-9f44a7fb6db3fa8a62c4f82fd0189435ddd05d63.tar.gz
openbsd-9f44a7fb6db3fa8a62c4f82fd0189435ddd05d63.tar.bz2
openbsd-9f44a7fb6db3fa8a62c4f82fd0189435ddd05d63.zip
Restore tedu's rev 1.4: snprintf() was reviewed.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_sign.c2
-rw-r--r--src/lib/libssl/src/crypto/ts/ts_rsp_sign.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_sign.c b/src/lib/libcrypto/ts/ts_rsp_sign.c
index 58d5864823..17f81b4a35 100644
--- a/src/lib/libcrypto/ts/ts_rsp_sign.c
+++ b/src/lib/libcrypto/ts/ts_rsp_sign.c
@@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
983 if the elements correspond to 0, they MUST be wholly 983 if the elements correspond to 0, they MUST be wholly
984 omitted, and the decimal point element also MUST be 984 omitted, and the decimal point element also MUST be
985 omitted." */ 985 omitted." */
986 snprintf(usecstr, sizeof(usecstr), ".%06ld", usec); 986 (void) snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
987 /* truncate and trim trailing 0 */ 987 /* truncate and trim trailing 0 */
988 usecstr[precision + 1] = '\0'; 988 usecstr[precision + 1] = '\0';
989 p = usecstr + strlen(usecstr) - 1; 989 p = usecstr + strlen(usecstr) - 1;
diff --git a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c
index 58d5864823..17f81b4a35 100644
--- a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c
+++ b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c
@@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
983 if the elements correspond to 0, they MUST be wholly 983 if the elements correspond to 0, they MUST be wholly
984 omitted, and the decimal point element also MUST be 984 omitted, and the decimal point element also MUST be
985 omitted." */ 985 omitted." */
986 snprintf(usecstr, sizeof(usecstr), ".%06ld", usec); 986 (void) snprintf(usecstr, sizeof(usecstr), ".%06ld", usec);
987 /* truncate and trim trailing 0 */ 987 /* truncate and trim trailing 0 */
988 usecstr[precision + 1] = '\0'; 988 usecstr[precision + 1] = '\0';
989 p = usecstr + strlen(usecstr) - 1; 989 p = usecstr + strlen(usecstr) - 1;