Made the new %M escape handle multiple spaces in the timestamp
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 4f53107..dad939b 100644 (file)
--- 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;