all repos — slstatus @ 8a29374783251da5ff23831e03c761b4a58eff03

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

run_command: strlen() will not function if string is not null terminated
Aaron Marcher info@nulltime.net
Sat, 07 Jan 2017 21:19:40 +0100
commit

8a29374783251da5ff23831e03c761b4a58eff03

parent

965a71d6784124bb101d9005b92276e2ec1ccca3

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

jump to
M slstatus.cslstatus.c

@@ -426,7 +426,7 @@ return smprintf("%s", UNKNOWN_STR);

} fgets(buf, sizeof(buf), fp); pclose(fp); - buf[strlen(buf)] = '\0'; + buf[sizeof(buf)] = '\0'; if ((nlptr = strstr(buf, "\n")) != NULL) { nlptr[0] = '\0';