Check ignore windowname for truncation and provide user feedback during

config parse; based on a discussion with Tiago Cunha.
This commit is contained in:
okan
2014-01-28 20:22:21 +00:00
parent df15337a9f
commit c28467cda5
3 changed files with 10 additions and 4 deletions

View File

@@ -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 {