slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit b231cd90ebe54eef8649996fc80cabc3a420c9e5
parent cfb4a5d3ffeec74722101f394a1a3f0856217210
Author: raiz <raiz@firemail.cc>
Date:   Thu, 29 Dec 2016 12:40:43 +0300

add braces to single statements so drkhsh doesn't be upset

Diffstat:
Mslstatus.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/slstatus.c b/slstatus.c @@ -820,8 +820,9 @@ main(int argc, char *argv[]) element = smprintf("%s", UNKNOWN_STR); warnx("Failed to format output"); } - if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string)) + if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string)) { warnx("Output too long"); + } free(res); free(element); }