slstatus

my slstatus build
git clone https://git.afify.dev/slstatus.git
Log | Files | Refs | README | LICENSE

commit e6158e300d3134e44f741e01108dd088297c476f
parent d19d4aa2e8be789c7d3c4849a7c5d9fcec18da5d
Author: Ali H. Fardan <raiz@firemail.cc>
Date:   Mon, 12 Sep 2016 13:51:43 +0300

subtraction is unneeded

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

diff --git a/slstatus.c b/slstatus.c @@ -260,7 +260,7 @@ hostname(void) 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);