summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2020-02-21 15:23:37 +0100
committerFelix Buehler <account@buehler.rocks>2020-02-21 15:23:37 +0100
commit0a5f0ef115257004c0d1eac058d2c8997ef53de3 (patch)
treeb9138f32700c33067c0c331046d4b704304fd0fa
parent3ceb0b8fcff1b247067482f3b73574f6021cb185 (diff)
use exact size for known strings
-rw-r--r--src/print_ddate.c6
1 files changed, 3 insertions, 3 deletions
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]);