From 44a97a34b151a3a4fc4fd4b1c0def483a428e633 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 25 Oct 2009 21:24:48 -0700 Subject: [PATCH] Enhance log_format_has() to understand the "'" modifier. --- log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1