X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Ftoken.c;h=fcb1aeb0dbcc01658777f2655f936165852661b2;hp=c46c9f29e0449e4b8aa45d20bcf7294955aafde5;hb=1f490c5ea15d073c9ec918b78a5e6117a0a8bd3e;hpb=534506a757688db300328b7141bab4d6d0bd4e29 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; }