diff options
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r-- | src/pinentry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index b055b77..d62d4b2 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -53,7 +53,7 @@ pub async fn getpin( drop(stdin); let mut buf = crate::locked::Vec::new(); - buf.extend(std::iter::repeat(0)); + buf.zero(); // unwrap is safe because we specified stdout as piped in the command opts // above let len = read_password( |