fixed -I option

This commit is contained in:
ceriel
1990-06-28 18:06:16 +00:00
parent 56858bb480
commit 266d247470
3 changed files with 14 additions and 37 deletions

View File

@@ -89,21 +89,13 @@ do_option(text)
register char *new = text;
if (++inc_total > inc_max) {
char **n = (char **)
Malloc((10 + inc_max) * sizeof(char *));
for (i = 0; i < inc_max; i++) {
n[i] = inctable[i];
}
free((char *) inctable);
inctable = n;
inc_max += 10;
inctable = (char **)
Realloc(inctable,(inc_max+=10)*sizeof(char *));
}
i = inc_pos++;
while (new) {
register char *tmp = inctable[i];
for(i = inc_pos++; i <= inc_total; i++) {
char *tmp = inctable[i];
inctable[i++] = new;
new = tmp;
}