X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Ftoken.c;h=35ddbf741416d0b55852b1355307e755ef87964f;hp=c46c9f29e0449e4b8aa45d20bcf7294955aafde5;hb=0e3065564e83037d5fbbb3e0e1595e7ce95ce8eb;hpb=44cde08e6cf148928a219593c78a57abfd89b424 diff --git a/src/token.c b/src/token.c index c46c9f2..35ddbf7 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) { /* OPDSIZE + 「'」2文字分 */ setcerr(118, p); /* operand length is too long */ break; }