From 7cfb250c9362666a51f436008d573e90a5d52def Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 3 Feb 2006 22:41:19 +0000 Subject: [PATCH] Made the new %M escape handle multiple spaces in the timestamp (which can occur if the user's system doesn't have strftime()). --- log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 4f531078..dad939b1 100644 --- a/log.c +++ b/log.c @@ -467,8 +467,8 @@ static void log_formatted(enum logcode code, char *format, char *op, case 'M': n = timestring(file->modtime); { - char *cp = strchr(n, ' '); - if (cp) + char *cp; + while ((cp = strchr(n, ' ')) != NULL) *cp = '-'; } break; -- 2.34.1