From 0a5f0ef115257004c0d1eac058d2c8997ef53de3 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 21 Feb 2020 15:23:37 +0100 Subject: use exact size for known strings --- src/print_ddate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/print_ddate.c b/src/print_ddate.c index 539d886..1a5258c 100644 --- a/src/print_ddate.c +++ b/src/print_ddate.c @@ -111,9 +111,9 @@ void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t) char string_H[STRING_SIZE]; char string_N[STRING_SIZE]; /* Newline- and Tabbing-characters */ - char string_n[STRING_SIZE] = "\n"; - char string_t[STRING_SIZE] = "\t"; - char string_tibs_day[STRING_SIZE] = "St. Tib's Day"; + char string_n[2] = "\n"; + char string_t[2] = "\t"; + char string_tibs_day[14] = "St. Tib's Day"; /* Weekday in long and abbreviation */ snprintf(string_A, STRING_SIZE, "%s", day_long[dt->week_day]); -- cgit v1.2.3