summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slstatus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index b3abafb..9bd9e81 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -102,7 +102,9 @@ main(int argc, char *argv[])
}
if (sflag) {
- printf("%s\n", status);
+ if (printf("%s\n", status) < 0) {
+ die("printf:");
+ }
} else {
if (XStoreName(dpy, DefaultRootWindow(dpy), status) < 0) {
die("XStoreName: Allocation failed");