[rules] Cosmetic

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-30 11:57:16 +02:00
parent 4473a25234
commit 6f409e39d0
1 changed files with 3 additions and 3 deletions

View File

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