Fix output truncation warning

This commit is contained in:
Ivan Tham 2020-06-15 00:43:06 +08:00
parent 75ad568b48
commit 9fcdf89e06

4
spt.c
View File

@ -83,9 +83,9 @@ notify_send(char *cmt)
void
display_state(int remaining, int suspend)
{
char buf[21];
char buf[29];
snprintf(buf, 21, "Remaining: %02d:%02d %s",
snprintf(buf, 29, "Remaining: %02d:%02d %s",
remaining / 60,
remaining % 60,
(suspend) ? "" : "");