diff options
Diffstat (limited to 'src/ascmagic.c')
-rw-r--r-- | src/ascmagic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ascmagic.c b/src/ascmagic.c index 841dea00..c40942f9 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -49,7 +49,7 @@ #include "names.h" #ifndef lint -FILE_RCSID("@(#)$File: ascmagic.c,v 1.66 2008/10/16 16:31:16 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.67 2008/10/18 20:47:48 christos Exp $") #endif /* lint */ #define MAXLINELEN 300 /* longest sane line length */ @@ -97,6 +97,9 @@ file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes) size_t last_line_end = (size_t)-1; int has_long_lines = 0; + if (ms->flags & MAGIC_APPLE) + return 0; + /* * Undo the NUL-termination kindly provided by process() * but leave at least one byte to look at |