From 9b9ea806ad0ec469ae40c22b34b9e11220f0710a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 20 Jan 2023 16:54:22 +0100 Subject: [PATCH] time-util: condition size check based on utc mode --- src/basic/time-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/time-util.c b/src/basic/time-util.c index dcafad48828..791d83a5d8a 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -333,7 +333,7 @@ char *format_timestamp_style( 1 + 10 + /* space and date */ 1 + 8 + /* space and time */ (us ? 1 + 6 : 0) + /* "." and microsecond part */ - 1 + 1 + /* space and shortest possible zone */ + 1 + (utc ? 3 : 1) + /* space and shortest possible zone */ 1)) return NULL; /* Not enough space even for the shortest form. */ -- 2.47.3