Two digits is enough

This commit is contained in:
Bastien Dejean 2012-12-25 19:07:12 +01:00
parent 6b2d8152ca
commit bfe1d95454

View file

@ -97,7 +97,7 @@ void list_rules(char *rsp)
char line[MAXLEN]; char line[MAXLEN];
for (rule_t *r = rule_head; r != NULL; r = r->next) { for (rule_t *r = rule_head; r != NULL; r = r->next) {
snprintf(line, sizeof(line), "%03X %s %s %s\n", r->uid, r->cause.name, (r->effect.desktop != NULL ? r->effect.desktop->name : "\b"), (r->effect.floating ? "floating" : "\b")); snprintf(line, sizeof(line), "%02X %s %s %s\n", r->uid, r->cause.name, (r->effect.desktop != NULL ? r->effect.desktop->name : "\b"), (r->effect.floating ? "floating" : "\b"));
strncat(rsp, line, REMLEN(rsp)); strncat(rsp, line, REMLEN(rsp));
} }
} }