From: Reuben Thomas Date: Sat, 12 Mar 2011 18:13:54 +0000 (+0000) Subject: Make comment match reality: ascmagic no longer matches keywords. X-Git-Tag: FILE5_07~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f6c176324c8aeb0753af315a27d6c385a60f8ae;p=file Make comment match reality: ascmagic no longer matches keywords. --- diff --git a/src/ascmagic.c b/src/ascmagic.c index d3738a4d..c1c6650e 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -26,8 +26,7 @@ * SUCH DAMAGE. */ /* - * ASCII magic -- file types that we know based on keywords - * that can appear anywhere in the file. + * ASCII magic -- try to detect text encoding. * * Extensively modified by Eric Fischer in July, 2000, * to handle character codes other than ASCII on a unified basis. @@ -36,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: ascmagic.c,v 1.78 2011/02/03 01:43:33 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.79 2011/02/10 02:22:58 christos Exp $") #endif /* lint */ #include "magic.h" @@ -277,7 +276,7 @@ subtype_identified: break; } } - + if (file_printf(ms, "%s", code) == -1) goto done;