diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/stat.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index d07a9dff3..9a6a1540e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-11-15 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + + * Ivan Tkachenko: 43823: Src/Modules/stat.c: remove unnecessary + metafy() in stattimeprint() + 2018-11-14 Peter Stephenson <p.stephenson@samsung.com> * 43620: Doc/Zsh/expn.yo: more care documenting command diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 50a6a9bb2..7c736072b 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -198,10 +198,8 @@ stattimeprint(time_t tim, long nsecs, char *outbuf, int flags) if (flags & STF_STRING) { char *oend = outbuf + strlen(outbuf); /* Where the heck does "40" come from? */ - int len = ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) : + ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) : localtime(&tim), nsecs); - if (len > 0) - metafy(oend, len, META_NOALLOC); if (flags & STF_RAW) strcat(oend, ")"); } |