This way cases like
$ slstatus -s > /dev/full
are properly caught and the program terminated with the proper return
code.
- printf("%s\n", status);
+ if (printf("%s\n", status) < 0) {
+ die("printf:");
+ }
} else {
if (XStoreName(dpy, DefaultRootWindow(dpy), status) < 0) {
die("XStoreName: Allocation failed");
} else {
if (XStoreName(dpy, DefaultRootWindow(dpy), status) < 0) {
die("XStoreName: Allocation failed");