From: Christos Zoulas Date: Mon, 22 Mar 2004 18:48:56 +0000 (+0000) Subject: Compensate for missing MAXPATHLEN X-Git-Tag: FILE4_08~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ae59ccd255228ff14f0e001ae0ee4a2ab8e4808;p=file Compensate for missing MAXPATHLEN --- diff --git a/src/apprentice.c b/src/apprentice.c index 9adbd4ab..f8f4bd9b 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -50,7 +50,7 @@ #endif #ifndef lint -FILE_RCSID("@(#)$Id: apprentice.c,v 1.74 2004/03/09 18:52:08 christos Exp $") +FILE_RCSID("@(#)$Id: apprentice.c,v 1.75 2004/03/22 18:48:56 christos Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -75,6 +75,10 @@ FILE_RCSID("@(#)$Id: apprentice.c,v 1.74 2004/03/09 18:52:08 christos Exp $") #define MAP_FILE 0 #endif +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + private int getvalue(struct magic_set *ms, struct magic *, char **); private int hextoint(int); private char *getstr(struct magic_set *, char *, char *, int, int *);