diff options
| author | espkk <espkk@protonmail.ch> | 2018-10-14 07:40:33 +0300 |
|---|---|---|
| committer | espkk <espkk@protonmail.ch> | 2018-10-14 07:40:33 +0300 |
| commit | 793148734752bea494a507c5cfb591decbf92c86 (patch) | |
| tree | a8fd1e5f7497d48c1b95a6ed0bb173b2d4e2ee52 /password.c | |
| parent | c7776e780425abb830c6b37c25cbd58ecc685680 (diff) | |
swaylock: fix clear_password_buffer
Diffstat (limited to 'password.c')
| -rw-r--r-- | password.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
