You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
703 B
24 lines
703 B
2 years ago
|
From 85b7ab83257b3191a1a7ca044589a092bcef2bb3 Mon Sep 17 00:00:00 2001
|
||
|
From: Christos Zoulas <christos@zoulas.com>
|
||
|
Date: Thu, 25 Jun 2020 16:52:48 +0000
|
||
|
Subject: [PATCH] Include # (alternate format) to the list of uninteresting
|
||
|
formats Reported by Werner Fink
|
||
|
|
||
|
---
|
||
|
src/funcs.c | 2 ++--
|
||
|
1 file changed, 1 insertions(+), 1 deletions(-)
|
||
|
|
||
|
diff --git a/src/funcs.c b/src/funcs.c
|
||
|
index 299b8f022..ecbfa28c5 100644
|
||
|
--- a/src/funcs.c
|
||
|
+++ b/src/funcs.c
|
||
|
@@ -93,7 +93,7 @@ file_checkfmt(char *msg, size_t mlen, const char *fmt)
|
||
|
if (*++p == '%')
|
||
|
continue;
|
||
|
// Skip uninteresting.
|
||
|
- while (strchr("0.'+- ", *p) != NULL)
|
||
|
+ while (strchr("#0.'+- ", *p) != NULL)
|
||
|
p++;
|
||
|
if (*p == '*') {
|
||
|
if (msg)
|