Problem reported by Bruno Haible (bug#65003).
* src/pinky.c (idle_string): Fix recently-introduced typo:
missing "d" for "days".
idle_string (time_t when)
{
static time_t now = 0;
- static char buf[INT_STRLEN_BOUND (intmax_t) + 2];
+ static char buf[INT_STRLEN_BOUND (intmax_t) + sizeof "d"];
time_t seconds_idle;
if (now == 0)
else
{
intmax_t days = seconds_idle / (24 * 60 * 60);
- sprintf (buf, "%"PRIdMAX, days);
+ sprintf (buf, "%"PRIdMAX"d", days);
}
return buf;
}