From d5af55c4f8e1166ab75be3a8f3e7421d65f24252 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 19 Aug 2016 09:31:57 +0200 Subject: [PATCH] cron: add NULL terminator for key arrays (clang sanitizer) --- src/cron.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cron.c b/src/cron.c index c019fa7d2..ef045a33f 100644 --- a/src/cron.c +++ b/src/cron.c @@ -111,12 +111,13 @@ cron_set ( cron_t *c, const char *str ) { uint64_t ho, mi, mo, dm, dw; static const char *days[] = { - "sun", "mon", "tue", "wed", "thu", "fri", "sat" + "sun", "mon", "tue", "wed", "thu", "fri", "sat", NULL }; static const char *months[] = { "ignore", "jan", "feb", "mar", "apr", "may", "jun", - "jul", "aug", "sep", "oct", "nov", "dec" + "jul", "aug", "sep", "oct", "nov", "dec", + NULL }; /* Daily (01:01) */ -- 2.47.3