X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fsymtab.c;h=b69259a7fe9185986fddbe54477cac1c6ace6dfc;hp=4a2e1abe969d5053c91864a16f93a635ede683cf;hb=a4bfc6ca5a01f2cef94fb6a147024e8b52101b6e;hpb=684154694394c35b594ca101b15796898888ebde diff --git a/restore/symtab.c b/restore/symtab.c index 4a2e1ab..b69259a 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.24 2005/01/14 13:04:07 stelian Exp $"; + "$Id: symtab.c,v 1.25 2005/03/30 13:34:00 stelian Exp $"; #endif /* not lint */ /* @@ -712,8 +712,10 @@ initsymtable(char *filename) panic("initsymtable called from command %c\n", command); break; } - resizemaps(maxino, hdr.maxino); - maxino = hdr.maxino; + if (hdr.maxino > maxino) { + resizemaps(maxino, hdr.maxino); + maxino = hdr.maxino; + } entrytblsize = hdr.entrytblsize; entry = (struct entry **) (base + tblsize - (entrytblsize * sizeof(struct entry *)));