]> granicus.if.org Git - file/commitdiff
Fix typo in earlier fix
authorReuben Thomas <rrt@sc3d.org>
Sun, 17 Feb 2008 23:40:48 +0000 (23:40 +0000)
committerReuben Thomas <rrt@sc3d.org>
Sun, 17 Feb 2008 23:40:48 +0000 (23:40 +0000)
src/apprentice.c

index 0d65d84421ed79b08b3594c9e4e916e663999c6e..115002ae5a338555508fb3abdf8a29dcb1a8273d 100644 (file)
@@ -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);