all repos — slstatus @ 9c9ce8a125f35bab61c829bdd58bdf77b8352d5e

my build of slstatus (tools.suckless.org/slstatus/)

Check printf() for output errors

This way cases like

	$ slstatus -s > /dev/full

are properly caught and the program terminated with the proper return
code.
Laslo Hunhold dev@frign.de
Tue, 22 May 2018 12:50:43 +0200
commit

9c9ce8a125f35bab61c829bdd58bdf77b8352d5e

parent

825f637e20e98901447825ac44aa24859083fe00

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -102,7 +102,9 @@ len += ret;

} 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");