sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit dbb169bf1588b524bde8a2b7bfb83d5e2bb9b506
parent 71aaa7e13038dbbe40cbeb73bf23b3dcdbda5eba
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 14 Oct 2018 14:30:06 +0200

Merge pull request #2829 from espkk/master

Fix clear_password_buffer
Diffstat:
Mswaylock/password.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swaylock/password.c b/swaylock/password.c @@ -14,7 +14,7 @@ void clear_password_buffer(struct swaylock_password *pw) { // Use volatile keyword so so compiler can't optimize this out. volatile char *buffer = pw->buffer; volatile char zero = '\0'; - for (size_t i = 0; i < sizeof(buffer); ++i) { + for (size_t i = 0; i < sizeof(pw->buffer); ++i) { buffer[i] = zero; } pw->len = 0;