summaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
commit87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch)
tree9e44c0b5a073ee17b9d7d3da181c696f012c6248 /sbin/restore
parent941ec3d1051d178a11f6baa72a3d520413033f2e (diff)
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/symtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c
index d7fb03747cf..77282b072f5 100644
--- a/sbin/restore/symtab.c
+++ b/sbin/restore/symtab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: symtab.c,v 1.7 2002/02/16 21:27:37 millert Exp $ */
+/* $OpenBSD: symtab.c,v 1.8 2002/08/12 00:42:56 aaron Exp $ */
/* $NetBSD: symtab.c,v 1.10 1997/03/19 08:42:54 lukem Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)symtab.c 8.2 (Berkeley) 9/13/94";
#else
-static char rcsid[] = "$OpenBSD: symtab.c,v 1.7 2002/02/16 21:27:37 millert Exp $";
+static char rcsid[] = "$OpenBSD: symtab.c,v 1.8 2002/08/12 00:42:56 aaron Exp $";
#endif
#endif /* not lint */
@@ -575,7 +575,7 @@ initsymtable(filename)
panic("cannot stat symbol table file %s\n", filename);
}
tblsize = stbuf.st_size - sizeof(struct symtableheader);
- base = calloc(sizeof(char), (unsigned)tblsize);
+ base = calloc((unsigned)tblsize, sizeof(char));
if (base == NULL)
panic("cannot allocate space for symbol table\n");
if (read(fd, base, (int)tblsize) < 0 ||