Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cron: add NULL terminator for key arrays (clang sanitizer)
  • Loading branch information
perexg committed Aug 19, 2016
1 parent b1ef757 commit 46b2e25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cron.c
Expand Up @@ -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) */
Expand Down

0 comments on commit 46b2e25

Please sign in to comment.