From: Dale Weiler Date: Sat, 15 Jun 2013 07:42:01 +0000 (+0000) Subject: Strlen idiot X-Git-Tag: v0.3.0~105^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7115176c0e21b7e6a436c6e3e97b800900e5af0b;p=xonotic%2Fgmqcc.git Strlen idiot --- diff --git a/parser.c b/parser.c index a87cee9..2a0e7b7 100644 --- 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);