X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftoken.c;h=fcb1aeb0dbcc01658777f2655f936165852661b2;hb=af29984ce5d32d7975405b1066fdc7596e44b928;hp=c46c9f29e0449e4b8aa45d20bcf7294955aafde5;hpb=1e636c95bf237645b6c9117e3eb64aa2d8aa4c90;p=YACASL2.git diff --git a/src/token.c b/src/token.c index c46c9f2..fcb1aeb 100644 --- a/src/token.c +++ b/src/token.c @@ -38,7 +38,7 @@ OPD *opdtok(const char *str) setcerr(121, NULL); /* cannot get operand token */ break; } - if(strlen(p) > OPDSIZE + 1) { + if(strlen(p) > OPDSIZE + 2) { setcerr(118, p); /* operand length is too long */ break; }