projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfb4a5d
)
add braces to single statements so drkhsh doesn't be upset
author
raiz
<raiz@firemail.cc>
Thu, 29 Dec 2016 09:40:43 +0000
(12:40 +0300)
committer
raiz
<raiz@firemail.cc>
Thu, 29 Dec 2016 09:40:43 +0000
(12:40 +0300)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 1f0851455cef36d3e3135f33d41fff5d7d995f86..ac4c96275edf82b60bd0d12fc80332aea7799d25 100644
(file)
--- 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);
}