From: Pádraig Brady
Date: Tue, 1 Aug 2023 13:54:15 +0000 (+0100) Subject: pinky: fix buffer size on 32 bit builds X-Git-Tag: v9.4~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e886b300f791e521b183df21a9d4b59b0fe9f9a5;p=thirdparty%2Fcoreutils.git pinky: fix buffer size on 32 bit builds * src/pinky.c (idle_string): Use the correct buffer size following the recent int type adjustment. --- 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)