summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts
diff options
context:
space:
mode:
authorguenther <>2014-04-19 11:46:39 +0000
committerguenther <>2014-04-19 11:46:39 +0000
commitf376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 (patch)
tree1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/ts
parent597610ccf04bbca4e88fac7988877d0a06e02211 (diff)
downloadopenbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.gz
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.bz2
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.zip
We'll interpret a (void) cast on snprintf() to mean it's been verified that
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/ts')
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_sign.c b/src/lib/libcrypto/ts/ts_rsp_sign.c
index e52c9ff03b..58d5864823 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 (void)snprintf(usecstr, sizeof(usecstr), ".%06ld", usec); 986 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;