slstatus

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit c288663ebdeb78ef50a6378651bb14380ed4b20a
parent b2714032e5087e63b5744d3fb8a131e13e1d6f9a
Author: Aaron Marcher <info@nulltime.net>
Date:   Thu, 20 Apr 2017 22:20:19 +0200

fix overflow in run_command()

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

diff --git a/slstatus.c b/slstatus.c @@ -451,7 +451,7 @@ run_command(const char *cmd) pclose(fp); buf[sizeof(buf) - 1] = '\0'; - if ((nlptr = strstr(buf, "\n")) != NULL) { + if ((nlptr = strrchr(buf, '\n')) != NULL) { nlptr[0] = '\0'; }