do chmod last in install
[unix-history] / usr / src / usr.bin / expand / expand.c
index 17b52e3..f61833d 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)expand.c    4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)expand.c    4.2 (Berkeley) %G%";
 #include <stdio.h>
 /*
  * expand - expand tabs to equivalent spaces
 #include <stdio.h>
 /*
  * expand - expand tabs to equivalent spaces
@@ -101,7 +101,7 @@ bad:
                        fprintf(stderr, "Bad tab stop spec\n");
                        exit(1);
                }
                        fprintf(stderr, "Bad tab stop spec\n");
                        exit(1);
                }
-               if (nstops > 0 && i <= tabstops[nstops])
+               if (nstops > 0 && i <= tabstops[nstops-1])
                        goto bad;
                tabstops[nstops++] = i;
                if (*cp == 0)
                        goto bad;
                tabstops[nstops++] = i;
                if (*cp == 0)