]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
pinky: fix buffer size on 32 bit builds
authorPádraig Brady <P@draigBrady.com>
Tue, 1 Aug 2023 13:54:15 +0000 (14:54 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 1 Aug 2023 13:59:29 +0000 (14:59 +0100)
* src/pinky.c (idle_string): Use the correct buffer size
following the recent int type adjustment.

src/pinky.c

index a284545a563beb16a4e9c976080a5d920930735c..381e753b61965046c30c0b7732c9d3d8da00c887 100644 (file)
@@ -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)