]> git.sur5r.net Git - i3/i3status/commitdiff
Fix harmless format string mistake (Thanks loblik) 2.5
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 15:42:51 +0000 (17:42 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 15:42:51 +0000 (17:42 +0200)
src/print_ddate.c

index edc8e978cbd7ededa500f2f9a5bed55e1050b0cd..ce94759ab3a7efcc556db590abec992f92e54f67 100644 (file)
@@ -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 */