diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-05-02 17:42:51 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-05-02 17:42:51 +0200 |
commit | 7dc10f4205fd4f11626899048a7d627e56dfd59e (patch) | |
tree | fe8cf0c8c05bc814254c0342fa85a757ff3ff47c | |
parent | 911ba1db7bc88df890eb2b3a5896e09928d972bc (diff) |
Fix harmless format string mistake (Thanks loblik)2.5
-rw-r--r-- | src/print_ddate.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |