1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-03 20:51:07 +01:00

users/14902: another go at strftime

This commit is contained in:
Peter Stephenson 2010-02-26 17:07:18 +00:00
parent d5a0f7623c
commit 31123a1184
2 changed files with 5 additions and 3 deletions

View file

@ -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') {