summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorraiz <raiz@firemail.cc>2016-12-29 12:40:43 +0300
committerraiz <raiz@firemail.cc>2016-12-29 12:40:43 +0300
commitb231cd90ebe54eef8649996fc80cabc3a420c9e5 (patch)
treed193dc167f43171f97ebd4e038ca46afae1dfe68 /slstatus.c
parentcfb4a5d3ffeec74722101f394a1a3f0856217210 (diff)
add braces to single statements so drkhsh doesn't be upset
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index 1f08514..ac4c962 100644
--- 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);
}