From 8919d0df280aacd0b39395f1911cc86cba0e4465 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Wed, 16 Sep 1987 14:43:52 +0000 Subject: [PATCH] Fix rcsid; reformat long warning. --- src/apprentice.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index 3c526354..9a654e25 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -30,13 +30,13 @@ #include "file.h" #ifndef lint -static char *moduleid = "$Header: /home/glen/git/file/cvs/file/src/apprentice.c,v 1.6 1987/09/16 10:11:06 ian Exp $"; +static char *moduleid = + "@(#)$Header: /home/glen/git/file/cvs/file/src/apprentice.c,v 1.7 1987/09/16 14:43:52 ian Exp $"; #endif /* lint */ #define MAXSTR 500 #define EATAB {while (isascii(*l) && isspace(*l)) ++l;} - extern char *progname; extern char *magicfile; extern int debug; /* option */ @@ -88,9 +88,14 @@ int *ndx, check; static int warned = 0; struct magic *m; + /* + * TODO malloc the magic structures (linked list?) so this can't happen + */ if (nd+1 >= MAXMAGIS){ if (warned++ == 0) - warning("magic table overflow - increase MAXMAGIS beyond %d in file/apprentice.c\n", MAXMAGIS); + warning( +"magic table overflow - increase MAXMAGIS beyond %d in file/apprentice.c\n", + MAXMAGIS); return 0; } m = &magic[*ndx]; -- 2.50.1