projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do chmod last in install
[unix-history]
/
usr
/
src
/
usr.bin
/
expand
/
expand.c
diff --git
a/usr/src/usr.bin/expand/expand.c
b/usr/src/usr.bin/expand/expand.c
index
17b52e3
..
f61833d
100644
(file)
--- a/
usr/src/usr.bin/expand/expand.c
+++ b/
usr/src/usr.bin/expand/expand.c
@@
-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)