From: Michael Stapelberg Date: Wed, 2 May 2012 15:42:51 +0000 (+0200) Subject: Fix harmless format string mistake (Thanks loblik) X-Git-Tag: 2.5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7dc10f4205fd4f11626899048a7d627e56dfd59e;p=i3%2Fi3status Fix harmless format string mistake (Thanks loblik) --- diff --git a/src/print_ddate.c b/src/print_ddate.c index edc8e97..ce94759 100644 --- a/src/print_ddate.c +++ b/src/print_ddate.c @@ -117,10 +117,10 @@ static int format_output(char *outwalk, char *format, struct disc_time *dt) { /* Holidays */ case 'H': if (dt->season_day == 4) { - outwalk += sprintf(outwalk, holidays[dt->season]); + outwalk += sprintf(outwalk, "%s", holidays[dt->season]); } if (dt->season_day == 49) { - outwalk += sprintf(outwalk, holidays[dt->season + 5]); + outwalk += sprintf(outwalk, "%s", holidays[dt->season + 5]); } break; /* Stop parsing the format string, except on Holidays */