summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xlsfonts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlsfonts.c b/xlsfonts.c
index 52d3807..2d8d3f2 100644
--- a/xlsfonts.c
+++ b/xlsfonts.c
@@ -497,9 +497,8 @@ PrintProperty(XFontProp * prop)
atom = XGetAtomName(dpy, prop->name);
if (!atom) {
+ snprintf(nosuch, sizeof(nosuch), "No such atom = %ld", prop->name);
atom = nosuch;
- nosuch[0] = '\0';
- (void) sprintf(atom, "No such atom = %ld", prop->name);
}
printf(" %s", atom);