aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-13 08:26:55 -0400
committerGitHub <noreply@github.com>2018-04-13 08:26:55 -0400
commit517b6dabdfeb9ac6aefa5c255ad6dc73ee65410f (patch)
tree2e2eea866e21d7f3484ef8efde82b5a6a6a2bfb0 /include
parent200d0360ea3fb2c68a6b92ff3cf0249d54457b88 (diff)
parentad6aa21c43bb87c917e21416f3ba448b634a98f8 (diff)
Merge pull request #1803 from ggreer/swaylock-secure-password
swaylock: Securely zero-out password.
Diffstat (limited to 'include')
-rw-r--r--include/swaylock/swaylock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
index 173e8b12..ed9fea19 100644
--- a/include/swaylock/swaylock.h
+++ b/include/swaylock/swaylock.h
@@ -24,9 +24,8 @@ struct swaylock_args {
};
struct swaylock_password {
- size_t size;
size_t len;
- char *buffer;
+ char buffer[1024];
};
struct swaylock_state {