diff options
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1673,6 +1673,8 @@ do_strftime(int nargs) if (do_lint && (t2->flags & (NUMCUR|NUMBER)) == 0) lintwarn(_("strftime: received non-numeric second argument")); fclock = (time_t) force_number(t2); + if (fclock < 0) + fatal(_("strftime: second argument less than 0 or too big for time_t")); DEREF(t2); } |