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 95ceafcae7fbd244c3226bb97db37a7a99877d55
parent 1289bdb742adab134cf4874447b66ab386deb724
Author: Aaron Marcher <info@nulltime.net>
Date:   Thu, 20 Apr 2017 22:14:56 +0200

Merge pull request #39 from stoeckmann/fgets

On success, fgets always terminates the result.
Diffstat:
Mslstatus.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slstatus.c b/slstatus.c @@ -447,7 +447,7 @@ run_command(const char *cmd) warn("Failed to get command output for %s", cmd); return smprintf("%s", UNKNOWN_STR); } - fgets(buf, sizeof(buf) - 1, fp); + fgets(buf, sizeof(buf), fp); pclose(fp); buf[sizeof(buf) - 1] = '\0';