Fixed problem with -I option
authorceriel <none@none>
Thu, 27 Sep 1990 17:45:34 +0000 (17:45 +0000)
committerceriel <none@none>
Thu, 27 Sep 1990 17:45:34 +0000 (17:45 +0000)
lang/m2/m2mm/options.c

index 6c0b956..0cb8c43 100644 (file)
@@ -85,10 +85,10 @@ AddInclDir(text)
                                        (unsigned)(mDEF * sizeof(char *)));
        }
 
-       for (i = ndirs++; i <= nDEF; i++) {
+       for (i = ndirs++; i < nDEF; i++) {
                char *tmp = DEFPATH[i];
 
-               DEFPATH[i++] = new;
+               DEFPATH[i] = new;
                new = tmp;
        }
 }