From: Jaroslav Kysela Date: Fri, 19 Aug 2016 07:31:57 +0000 (+0200) Subject: cron: add NULL terminator for key arrays (clang sanitizer) X-Git-Tag: v4.2.1~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46b2e25c3e4fda06cb46e9966371f91caed0e7d3;p=thirdparty%2Ftvheadend.git cron: add NULL terminator for key arrays (clang sanitizer) --- diff --git a/src/cron.c b/src/cron.c index a09452871..b2484070f 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) */