summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 46b8bd8..236011e 100644
--- a/src/list.c
+++ b/src/list.c
@@ -159,7 +159,10 @@ print_classes_xi2(Display* display, XIAnyClassInfo **classes,
for (j = 0; j < b->num_buttons; j++)
{
name = (b->labels[j]) ? XGetAtomName(display, b->labels[j]) : NULL;
- printf(" %s", (name) ? name : "None");
+ if (name)
+ printf(" \"%s\"", name);
+ else
+ printf(" None");
XFree(name);
}
printf("\n");