Fixed the %M escape, which was munging the wrong spaces.
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index b5bd966..f486db0 100644 (file)
--- a/log.c
+++ b/log.c
@@ -517,7 +517,7 @@ static void log_formatted(enum logcode code, const char *format, const char *op,
                        break;
                case 'M':
                        n = c = timestring(file->modtime);
-                       while ((c = strchr(p, ' ')) != NULL)
+                       while ((c = strchr(c, ' ')) != NULL)
                                *c = '-';
                        break;
                case 'B':