diff --git a/src/compiler/compiler.cpp b/src/compiler/compiler.cpp index 3382ff42..de6909e7 100644 --- a/src/compiler/compiler.cpp +++ b/src/compiler/compiler.cpp @@ -402,7 +402,7 @@ void addLitExpression(NG &ng, unsigned index, const char *expression, } // Ensure that our pattern isn't too long (in characters). - if (strlen(expression) > cc.grey.limitPatternLength) { + if (expLength > cc.grey.limitPatternLength) { throw CompileError("Pattern length exceeds limit."); }