From: Lennart Poettering Date: Fri, 20 Jan 2023 15:54:22 +0000 (+0100) Subject: time-util: condition size check based on utc mode X-Git-Tag: v253-rc1~52^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b9ea806ad0ec469ae40c22b34b9e11220f0710a;p=thirdparty%2Fsystemd.git time-util: condition size check based on utc mode --- 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. */