aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/rc/lex.c')
-rw-r--r--src/cmd/rc/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/rc/lex.c b/src/cmd/rc/lex.c
index 798ffe87..b0e27eb3 100644
--- a/src/cmd/rc/lex.c
+++ b/src/cmd/rc/lex.c
@@ -113,7 +113,7 @@ int nextis(int c){
}
char *addtok(char *p, int val){
if(p==0) return 0;
- if(p==&tok[NTOK]){
+ if(p==&tok[NTOK-1]){
*p=0;
yyerror("token buffer too short");
return 0;