diff options
author | okan | 2014-01-28 20:22:21 +0000 |
---|---|---|
committer | okan | 2014-01-28 20:22:21 +0000 |
commit | 673041f76297706b7679f3140891e8ab1dd548d8 (patch) | |
tree | 85398b8704571fcfd2e3d2a6e48731da6981bc05 /parse.y | |
parent | 21714a7f2eed869303044cb99686fe0f0a38267a (diff) | |
download | cwm-673041f76297706b7679f3140891e8ab1dd548d8.tar.gz |
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.y | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 { |