From ac615a5407424e66c578ffc6fc13e979dfc8a11d Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Thu, 28 Jun 2012 08:13:31 +0200 Subject: [PATCH] use header definition --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 41bb2e5..913e046 100644 --- a/parse.y +++ b/parse.y @@ -132,7 +132,7 @@ main : FONTNAME STRING { free($3); } | AUTOGROUP NUMBER STRING { - if ($2 < 0 || $2 > 9) { + if ($2 < 0 || $2 > CALMWM_NGROUPS) { free($3); yyerror("autogroup number out of range: %d", $2); YYERROR;