diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-26 17:07:18 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-26 17:07:18 +0000 |
commit | 31123a118472ee4e4afbfae5dff904bb40113e65 (patch) | |
tree | a5a4b3bafca25919b3f64faf45f6c9b6dbae277c | |
parent | d5a0f7623c2b1a5c83a9602cb2f881317d2771e2 (diff) | |
download | zsh-31123a118472ee4e4afbfae5dff904bb40113e65.tar.gz zsh-31123a118472ee4e4afbfae5dff904bb40113e65.tar.xz zsh-31123a118472ee4e4afbfae5dff904bb40113e65.zip |
users/14902: another go at strftime
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/Modules/datetime.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 22c72b03a..e24788548 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2010-02-26 Peter Stephenson <pws@csr.com> - * users/14900 Src/Moduels/datetime.c: ULONG_MAX may be valid + * users/14902: Src/Modules/datetime.c: another go. + + * users/14900: Src/Modules/datetime.c: ULONG_MAX may be valid return value from strtoul(). * users/14897: Src/Modules/datetime.c: test needed on @@ -12841,5 +12843,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4919 $ +* $Revision: 1.4920 $ ***************************************************** diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c index 2f69ecae6..0dc42fda8 100644 --- a/Src/Modules/datetime.c +++ b/Src/Modules/datetime.c @@ -113,7 +113,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func)) errno = 0; secs = (time_t)strtoul(argv[1], &endptr, 10); - if (secs == (time_t)ULONG_MAX && errno != 0) { + if (errno != 0) { zwarnnam(nam, "%s: %e", argv[1], errno); return 1; } else if (*endptr != '\0') { |