---
connection.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/connection.c b/connection.c
index 8aca2ab..24de809 100644
--- a/connection.c
+++ b/connection.c
_AT_@ -31,7 +31,8 @@ connection_log(const struct connection *c)
if (!strftime(tstmp, sizeof(tstmp), "%Y-%m-%dT%H:%M:%SZ",
gmtime(&(time_t){time(NULL)}))) {
warn("strftime: Exceeded buffer capacity");
- /* continue anyway (we accept the truncation) */
+ tstmp[0] = '\0'; /* tstmp contents are undefined on failure */
+ /* continue anyway */
}
/* generate address-string */
--
2.17.1
Received on Fri Jul 08 2022 - 20:12:17 CEST
This archive was generated by hypermail 2.3.0 : Sun Jul 10 2022 - 08:36:30 CEST