summaryrefslogtreecommitdiff
path: root/include/swaylock.h
diff options
context:
space:
mode:
authorRobin Ebert <ebertrobin2002@gmail.com>2022-05-30 11:50:30 +0200
committerSimon Ser <contact@emersion.fr>2022-06-15 10:49:32 +0200
commitbdeb891378bfcb2dc79de41cfeb6a62807d09b20 (patch)
treea9eef0cdb2d2fba56404291ab25a0ce48402b79b /include/swaylock.h
parentfad5bc2f615bcee37b653887af0aebb334ec94b5 (diff)
Use mlock for password buffer
Diffstat (limited to 'include/swaylock.h')
-rw-r--r--include/swaylock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index da6e3e9..e49c716 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -67,7 +67,8 @@ struct swaylock_args {
struct swaylock_password {
size_t len;
- char buffer[1024];
+ size_t buffer_len;
+ char *buffer;
};
struct swaylock_state {