[rules] Cosmetic
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4473a25234
commit
6f409e39d0
6
rules.c
6
rules.c
|
@ -65,10 +65,10 @@ rule_matching_client(client_t *c)
|
||||||
if(!(ch = xutil_get_class_hint(globalconf.connection, c->win)))
|
if(!(ch = xutil_get_class_hint(globalconf.connection, c->win)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
len = a_strlen(ch->res_class) + a_strlen(ch->res_name) + a_strlen(c->name);
|
len = a_strlen(ch->res_class) + a_strlen(ch->res_name) + a_strlen(c->name) + 3;
|
||||||
prop = p_new(char, len + 3);
|
prop = p_new(char, len);
|
||||||
|
|
||||||
snprintf(prop, len + 3, "%s:%s:%s",
|
snprintf(prop, len, "%s:%s:%s",
|
||||||
ch->res_class ? ch->res_class : "", ch->res_name ? ch->res_name : "", c->name);
|
ch->res_class ? ch->res_class : "", ch->res_name ? ch->res_name : "", c->name);
|
||||||
|
|
||||||
if(ch->res_class)
|
if(ch->res_class)
|
||||||
|
|
Loading…
Reference in New Issue