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-Tag: v2.6.7pre1~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cfb250c9362666a51f436008d573e90a5d52def;p=thirdparty%2Frsync.git 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;