Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include # (alternate format) to the list of uninteresting formats
Reported by Werner Fink
  • Loading branch information
zoulasc committed Jun 25, 2020
1 parent 95625de commit 85b7ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/funcs.c
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 85b7ab8

Please sign in to comment.