summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorokan <okan>2014-01-28 20:22:21 +0000
committerokan <okan>2014-01-28 20:22:21 +0000
commitc28467cda5323f2251ed16a407fd77b7ec9e5ba6 (patch)
treea9b96f700a88b5d5e7532735655df1fdd7a572d5 /parse.y
parentdf15337a9f180e41d5489ad9d45fc39ed3cdd335 (diff)
downloadcwm-c28467cda5323f2251ed16a407fd77b7ec9e5ba6.tar.gz
cwm-c28467cda5323f2251ed16a407fd77b7ec9e5ba6.tar.xz
cwm-c28467cda5323f2251ed16a407fd77b7ec9e5ba6.zip
Check ignore windowname for truncation and provide user feedback during
config parse; based on a discussion with Tiago Cunha.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 984f6bc..672a896 100644
--- a/parse.y
+++ b/parse.y
@@ -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		{