X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/281a141ea71b09e1bd26f5f774a60394de0a7cc0..44a97a34b151a3a4fc4fd4b1c0def483a428e633:/log.c diff --git a/log.c b/log.c index 61d01ce5..889a3189 100644 --- a/log.c +++ b/log.c @@ -785,10 +785,12 @@ int log_format_has(const char *format, char esc) return 0; for (p = format; (p = strchr(p, '%')) != NULL; ) { - if (*++p == '-') + for (p++; *p == '\''; p++) {} + if (*p == '-') p++; while (isDigit(p)) p++; + while (*p == '\'') p++; if (!*p) break; if (*p == esc)