]>
Commit | Line | Data |
---|---|---|
f8bdc9cd JR |
1 | From 85b7ab83257b3191a1a7ca044589a092bcef2bb3 Mon Sep 17 00:00:00 2001 |
2 | From: Christos Zoulas <christos@zoulas.com> | |
3 | Date: Thu, 25 Jun 2020 16:52:48 +0000 | |
4 | Subject: [PATCH] Include # (alternate format) to the list of uninteresting | |
5 | formats Reported by Werner Fink | |
6 | ||
7 | --- | |
8 | src/funcs.c | 4 ++-- | |
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
10 | ||
11 | diff --git a/src/funcs.c b/src/funcs.c | |
12 | index 299b8f022..ecbfa28c5 100644 | |
13 | --- a/src/funcs.c | |
14 | +++ b/src/funcs.c | |
15 | @@ -93,7 +93,7 @@ file_checkfmt(char *msg, size_t mlen, const char *fmt) | |
16 | if (*++p == '%') | |
17 | continue; | |
18 | // Skip uninteresting. | |
19 | - while (strchr("0.'+- ", *p) != NULL) | |
20 | + while (strchr("#0.'+- ", *p) != NULL) | |
21 | p++; | |
22 | if (*p == '*') { | |
23 | if (msg) |