diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-13 16:24:30 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-13 16:24:30 +0300 |
commit | b57630628a5c6d8d8d16f05b357f61b34c861359 (patch) | |
tree | 55a6afabcda2ce04dd95b8a1d292d18f8c54e027 /builtin.c | |
parent | f4eea5c198be1dcda61a94db10b8f3200888576b (diff) | |
parent | 11692d41b177e93df106309cf2eda493350bee35 (diff) | |
download | egawk-b57630628a5c6d8d8d16f05b357f61b34c861359.tar.gz egawk-b57630628a5c6d8d8d16f05b357f61b34c861359.tar.bz2 egawk-b57630628a5c6d8d8d16f05b357f61b34c861359.zip |
Merge branch 'master' into feature/wasted-byte
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1921,8 +1921,16 @@ do_strftime(int nargs) lintwarn(_("strftime: received non-numeric second argument")); (void) force_number(t2); clock_val = get_number_si(t2); - if (clock_val < 0) - fatal(_("strftime: second argument less than 0 or too big for time_t")); + /* + * 4/2015: This used to be here: + * + * if (clock_val < 0) + * fatal(_("strftime: second argument less than 0 or too big for time_t")); + * + * It is now disabled since some systems have strftime that works + * on times before the epoch. No arbritrary limits comes into + * play at this point. + */ fclock = (time_t) clock_val; DEREF(t2); } |