Clear static buffer returned by getpass()

This commit is contained in:
Tobias Brunner
2021-10-04 11:30:03 +02:00
parent de442491d9
commit 128d054407
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -129,6 +129,7 @@ static int send_stroke_msg(stroke_msg_t *msg)
if (pass)
{
stream->write_all(stream, pass, strlen(pass));
memwipe(pass, strlen(pass));
stream->write_all(stream, "\n", 1);
}
}