]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fixed the %M escape, which was munging the wrong spaces.
authorWayne Davison <wayned@samba.org>
Tue, 15 Apr 2008 15:32:41 +0000 (08:32 -0700)
committerWayne Davison <wayned@samba.org>
Tue, 15 Apr 2008 15:32:41 +0000 (08:32 -0700)
log.c

diff --git a/log.c b/log.c
index b5bd96677573fed692403c4c859a4bbaf2f8d800..f486db0da2242d4dbb7d2b82fdea6e902e047b73 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':