From: ceriel Date: Thu, 27 Sep 1990 16:43:51 +0000 (+0000) Subject: fixed bug in -I handling X-Git-Tag: release-5-5~1508 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e1a20fe944b84f12c791482bbeb61ffe5fe866de;p=ack.git fixed bug in -I handling --- diff --git a/util/cpp/options.c b/util/cpp/options.c index 374309d19..f1cb0b250 100644 --- a/util/cpp/options.c +++ b/util/cpp/options.c @@ -93,10 +93,10 @@ do_option(text) Realloc(inctable,(inc_max+=10)*sizeof(char *)); } - for(i = inc_pos++; i <= inc_total; i++) { + for(i = inc_pos++; i < inc_total; i++) { char *tmp = inctable[i]; - inctable[i++] = new; + inctable[i] = new; new = tmp; } }