=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/apprentice.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/file/Attic/apprentice.c 2002/06/05 13:46:44 1.14 +++ src/usr.bin/file/Attic/apprentice.c 2002/08/12 00:42:56 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: apprentice.c,v 1.14 2002/06/05 13:46:44 itojun Exp $ */ +/* $OpenBSD: apprentice.c,v 1.15 2002/08/12 00:42:56 aaron Exp $ */ /* * apprentice - make one pass through /etc/magic, learning its secrets. @@ -36,7 +36,7 @@ #include "file.h" #ifndef lint -static char *moduleid = "$OpenBSD: apprentice.c,v 1.14 2002/06/05 13:46:44 itojun Exp $"; +static char *moduleid = "$OpenBSD: apprentice.c,v 1.15 2002/08/12 00:42:56 aaron Exp $"; #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -65,7 +65,7 @@ int file_err, errs = -1; maxmagic = MAXMAGIS; - magic = (struct magic *) calloc(sizeof(struct magic), maxmagic); + magic = (struct magic *) calloc(maxmagic, sizeof(struct magic)); mfn = malloc(strlen(fn)+1); if (magic == NULL || mfn == NULL) { warn("malloc");