all repos — slstatus @ 5a70f920f04f1bfc2df959d2ae131f511b7c8e38

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

fixed run_command()
Aaron Marcher info@nulltime.net
Mon, 10 Oct 2016 09:02:24 +0200
commit

5a70f920f04f1bfc2df959d2ae131f511b7c8e38

parent

cc1bb3a3445696466e9be24f4dae0d9453896eb0

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

jump to
M slstatus.cslstatus.c

@@ -407,8 +407,8 @@ if (fp == NULL) {

warn("Failed to get command output for %s", cmd); return smprintf(UNKNOWN_STR); } - fgets(buf, sizeof(buf), fp); - buf[sizeof(buf)-1] = '\0'; + fgets(buf, sizeof(buf)-1, fp); + buf[strlen(buf)-1] = '\0'; pclose(fp); return smprintf("%s", buf);