]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Strlen idiot
authorDale Weiler <killfieldengine@gmail.com>
Sat, 15 Jun 2013 07:42:01 +0000 (07:42 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 15 Jun 2013 07:42:01 +0000 (07:42 +0000)
parser.c

index a87cee97aac1b7e65a8323c2bd593610e7157aa3..2a0e7b796ca27775f6579351c23a53f5dd950d15 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1936,7 +1936,7 @@ static bool parse_sya_operand(parser_t *parser, shunt *sy, bool with_labels)
                  * We should also consider adding correction tables for
                  * other things as well.
                  */
-                if (OPTS_OPTION_BOOL(OPTION_CORRECTION) && parser_tokval(parser) <= 16) {
+                if (OPTS_OPTION_BOOL(OPTION_CORRECTION) && strlen(parser_tokval(parser)) <= 16) {
                     correction_t corr;
                     correct_init(&corr);