fix to fix

This commit is contained in:
ceriel 1987-08-10 14:06:37 +00:00
parent abf9c71fa9
commit 3de7f959d3

View file

@ -700,12 +700,13 @@ enter_name(namep)
tab[tnum].ran_off = tssiz;
tab[tnum].ran_pos = offset;
for (cp = namep->on_mptr; *cp; cp++) {
for (cp = namep->on_mptr;; cp++) {
if (tssiz >= strtabsz) {
tstrtab = realloc(tstrtab, (strtabsz += 4096));
if (! tstrtab) error(TRUE, "string table overflow\n");
}
tstrtab[tssiz++] = *cp;
if (!*cp) break;
}
tnum++;
}