SHA256
1
0
forked from pool/file
file/file-5.39-alternate_format.dif

30 lines
836 B
Plaintext

commit 85b7ab83257b3191a1a7ca044589a092bcef2bb3
Author: Christos Zoulas <christos@zoulas.com>
Date: Thu Jun 25 16:52:48 2020 +0000
Include # (alternate format) to the list of uninteresting formats
Reported by Werner Fink
diff --git src/funcs.c src/funcs.c
index 299b8f02..ecbfa28c 100644
--- src/funcs.c
+++ src/funcs.c
@@ -27,7 +27,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.116 2020/06/15 00:56:48 christos Exp $")
+FILE_RCSID("@(#)$File: funcs.c,v 1.117 2020/06/25 16:52:48 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -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)