オペランドの最大長をOPDSIZE-1(=39)からOPDSIZE(=40)に修正
[YACASL2.git] / src / token.c
index c46c9f2..fcb1aeb 100644 (file)
@@ -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;
             }