From e886b300f791e521b183df21a9d4b59b0fe9f9a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Tue, 1 Aug 2023 14:54:15 +0100 Subject: [PATCH] pinky: fix buffer size on 32 bit builds * src/pinky.c (idle_string): Use the correct buffer size following the recent int type adjustment. --- src/pinky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pinky.c b/src/pinky.c index a284545a56..381e753b61 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -147,7 +147,7 @@ static char const * idle_string (time_t when) { static time_t now = 0; - static char buf[INT_STRLEN_BOUND (long int) + 2]; + static char buf[INT_STRLEN_BOUND (intmax_t) + 2]; time_t seconds_idle; if (now == 0) -- 2.47.3