Fix output truncation warning
This commit is contained in:
parent
75ad568b48
commit
9fcdf89e06
4
spt.c
4
spt.c
|
@ -83,9 +83,9 @@ notify_send(char *cmt)
|
||||||
void
|
void
|
||||||
display_state(int remaining, int suspend)
|
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,
|
||||||
remaining % 60,
|
remaining % 60,
|
||||||
(suspend) ? "◼" : "▶");
|
(suspend) ? "◼" : "▶");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user