diff options
Diffstat (limited to 'usr.bin/chpass/util.c')
-rw-r--r-- | usr.bin/chpass/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/chpass/util.c b/usr.bin/chpass/util.c index 07d96e2..baf160e 100644 --- a/usr.bin/chpass/util.c +++ b/usr.bin/chpass/util.c @@ -110,10 +110,10 @@ atot(char *p, time_t *store) } } } - if (!(t = strtok((char *)NULL, " \t,")) || !isdigit(*t)) + if (!(t = strtok(NULL, " \t,")) || !isdigit(*t)) goto bad; day = atoi(t); - if (!(t = strtok((char *)NULL, " \t,")) || !isdigit(*t)) + if (!(t = strtok(NULL, " \t,")) || !isdigit(*t)) goto bad; year = atoi(t); if (day < 1 || day > 31 || month < 1 || month > 12) |