eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 17ee4196f47f525a7d1874aeb23699dd80e20fde
parent d2bbdea24f85797b6509791f655be8397c1d2ebc
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Tue, 29 Oct 2019 16:12:34 -0700

client: Increase passphrase buffer to accommodate for nil byte

Diffstat:
Mclient/display.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/display.c b/client/display.c @@ -397,7 +397,7 @@ static void display_completion_matches(char **matches, int num_matches, static struct masked_input { bool use_mask; - char passphrase[MAX_PASSPHRASE_LEN]; + char passphrase[MAX_PASSPHRASE_LEN + 1]; uint8_t point; uint8_t end; } masked_input; @@ -453,7 +453,7 @@ done: static void reset_masked_input(void) { - memset(masked_input.passphrase, 0, MAX_PASSPHRASE_LEN); + memset(masked_input.passphrase, 0, MAX_PASSPHRASE_LEN + 1); masked_input.point = 0; masked_input.end = 0; }