all repos — slstatus @ e6158e300d3134e44f741e01108dd088297c476f

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

subtraction is unneeded
Ali H. Fardan raiz@firemail.cc
Mon, 12 Sep 2016 13:51:43 +0300
commit

e6158e300d3134e44f741e01108dd088297c476f

parent

d19d4aa2e8be789c7d3c4849a7c5d9fcec18da5d

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

jump to
M slstatus.cslstatus.c

@@ -260,7 +260,7 @@ }

fgets(hostname, sizeof(hostname), fp); /* FIXME: needs improvement */ - memset(&hostname[strlen(hostname)-1], '\0', + memset(&hostname[strlen(hostname)], '\0', sizeof(hostname) - strlen(hostname)); fclose(fp);