From: Wayne Davison Date: Fri, 3 Feb 2006 22:41:19 +0000 (+0000) Subject: Made the new %M escape handle multiple spaces in the timestamp X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/7cfb250c9362666a51f436008d573e90a5d52def Made the new %M escape handle multiple spaces in the timestamp (which can occur if the user's system doesn't have strftime()). --- 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;