summaryrefslogtreecommitdiff
path: root/app/cwm/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'app/cwm/parse.y')
-rw-r--r--app/cwm/parse.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y
index 33d49a08b..f218a13bc 100644
--- a/app/cwm/parse.y
+++ b/app/cwm/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.54 2014/01/28 00:42:20 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.55 2014/01/28 20:22:21 okan Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -151,7 +151,11 @@ main : FONTNAME STRING {
free($3);
}
| IGNORE STRING {
- conf_ignore(conf, $2);
+ if (!conf_ignore(conf, $2)) {
+ yyerror("ignore windowname too long");
+ free($2);
+ YYERROR;
+ }
free($2);
}
| BIND STRING string {