From: Reuben Thomas Date: Sun, 17 Feb 2008 23:40:48 +0000 (+0000) Subject: Fix typo in earlier fix X-Git-Tag: FILE5_05~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adebe3c2a471278ca6b76470633f59862f2bea57;p=file Fix typo in earlier fix --- diff --git a/src/apprentice.c b/src/apprentice.c index 0d65d844..115002ae 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -47,7 +47,7 @@ #endif #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.117 2008/02/17 19:28:54 rrt Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.118 2008/02/17 23:40:48 rrt Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -1828,7 +1828,7 @@ apprentice_map(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, } *nmagicp = (uint32_t)(st.st_size / sizeof(struct magic)); if (*nmagicp > 0) - nmagicp--; + (*nmagicp)--; (*magicp)++; if (needsbyteswap) byteswap(*magicp, *nmagicp);