X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fsymtab.c;h=5bd5e67c45b8b43958f674ffdf2422fe900c7cc0;hp=99312acaeb83a3172d4ebabd41933bab690a78a1;hb=e1abc9ce25132eef1239047a071c2c1d4822dd9f;hpb=5d2a3d246d400d45dfd4c49ddb588c69fb60873d diff --git a/restore/symtab.c b/restore/symtab.c index 99312ac..5bd5e67 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -18,11 +18,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -41,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.18 2002/01/25 15:09:00 stelian Exp $"; + "$Id: symtab.c,v 1.21 2003/03/30 15:40:40 stelian Exp $"; #endif /* not lint */ /* @@ -518,7 +514,7 @@ dumpsymtable(char *filename, long checkpt) /* * Convert entry pointers to indexes, and output */ - for (i = 0; i < entrytblsize; i++) { + for (i = 0; (long)i < entrytblsize; i++) { if (entry[i] == NULL) tentry = NULL; else @@ -611,6 +607,7 @@ initsymtable(char *filename) panic("initsymtable called from command %c\n", command); break; } + resizemaps(maxino, hdr.maxino); maxino = hdr.maxino; entrytblsize = hdr.entrytblsize; entry = (struct entry **)