aboutsummaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c
index 3ae6bf20c7be..840ff54b0428 100644
--- a/sbin/restore/symtab.c
+++ b/sbin/restore/symtab.c
@@ -545,7 +545,7 @@ initsymtable(char *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((size_t)tblsize, sizeof(char));
if (base == NULL)
panic("cannot allocate space for symbol table\n");
if (read(fd, base, (int)tblsize) < 0 ||