-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #91711: file: backport patch to fix a regression
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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) |