Skip to content

Commit

Permalink
Merge pull request #100 from trofi/master
Browse files Browse the repository at this point in the history
ttyclock.c: always use "%s"-style format for printf()-style functions
  • Loading branch information
anarcat authored Nov 21, 2021
2 parents 9e00c32 + 4cfd730 commit 06d0d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttyclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ draw_clock(void)
if (ttyclock.option.date)
{
wbkgdset(ttyclock.datewin, (COLOR_PAIR(2)));
mvwprintw(ttyclock.datewin, (DATEWINH / 2), 1, ttyclock.date.datestr);
mvwprintw(ttyclock.datewin, (DATEWINH / 2), 1, "%s", ttyclock.date.datestr);
wrefresh(ttyclock.datewin);
}

Expand Down

0 comments on commit 06d0d0b

Please sign in to comment.