diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2003-02-28 05:19:36 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2003-02-28 05:19:36 +0000 |
commit | 490143648c5a398bdab6c5bee5095bada57ea811 (patch) | |
tree | e13ce148e602abf9b596b117f679e40ac628883e /contrib/file/apprentice.c | |
parent | 3459dd3784f268dbec1ae7d473ff39e7192ca1f3 (diff) |
Notes
Diffstat (limited to 'contrib/file/apprentice.c')
-rw-r--r-- | contrib/file/apprentice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file/apprentice.c b/contrib/file/apprentice.c index 522945db1bbd..575bad6982db 100644 --- a/contrib/file/apprentice.c +++ b/contrib/file/apprentice.c @@ -38,7 +38,7 @@ #endif #ifndef lint -FILE_RCSID("@(#)$Id: apprentice.c,v 1.49 2002/07/03 19:00:41 christos Exp $") +FILE_RCSID("@(#)$Id: apprentice.c,v 1.50 2003/02/27 20:47:46 christos Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -231,7 +231,7 @@ apprentice_file(struct magic **magicp, uint32_t *nmagicp, const char *fn, } maxmagic = MAXMAGIS; - *magicp = (struct magic *) calloc(sizeof(struct magic), maxmagic); + *magicp = (struct magic *) calloc(maxmagic, sizeof(struct magic)); if (*magicp == NULL) { (void) fprintf(stderr, "%s: Out of memory (%s).\n", progname, strerror(errno)); |