]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cron: add NULL terminator for key arrays (clang sanitizer)
authorJaroslav Kysela <perex@perex.cz>
Fri, 19 Aug 2016 07:31:57 +0000 (09:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 19 Aug 2016 07:31:57 +0000 (09:31 +0200)
src/cron.c

index a0945287194ca3c38121c3808f132547d3a8bdad..b2484070fdf68e513b1425d1c929675d8c086b88 100644 (file)
@@ -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) */