all repos — slstatus @ 1ad9f2504d3b547ceb3e6e92215bc2d42164e782

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

hostname() null terminaiton subtraction *is* needed
Aaron Marcher info@nulltime.net
Wed, 14 Sep 2016 11:04:24 +0200
commit

1ad9f2504d3b547ceb3e6e92215bc2d42164e782

parent

bca9b5246a7fa3dc3fb66b3120be5b674fd16ecb

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

jump to
M slstatus.cslstatus.c

@@ -273,7 +273,7 @@ }

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