aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index 491e49d4..3dccbf1b 100644
--- a/tmux.c
+++ b/tmux.c
@@ -421,6 +421,7 @@ main(int argc, char **argv)
b = buffer_create(BUFSIZ);
if (unlock) {
cmd_send_string(b, pass);
+ memset(pass, 0, strlen(pass));
client_write_server(
&cctx, MSG_UNLOCK, BUFFER_OUT(b), BUFFER_USED(b));
} else {