]> 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:32:14 +0000 (09:32 +0200)
src/cron.c

index c019fa7d22cb126aedc21d1d6081929b555c6488..ef045a33f549601781d0ae11f9f6945065bf2bf2 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) */