aboutsummaryrefslogtreecommitdiffstats
path: root/src/pinentry.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-04-17 14:08:45 -0400
committerJesse Luehrs <doy@tozt.net>2021-04-17 14:08:45 -0400
commit516072b496e2cdd6e68230e6b500b5099bbe4b42 (patch)
tree714992bcf236ca5eaae0322ee972408789d41255 /src/pinentry.rs
parent09b223b144bb9394fb56026f880cd7aaff081593 (diff)
downloadrbw-516072b496e2cdd6e68230e6b500b5099bbe4b42.tar.gz
rbw-516072b496e2cdd6e68230e6b500b5099bbe4b42.zip
use bounded iterators
new arrayvec version panics if the iterator overflows rather than just stopping
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r--src/pinentry.rs2
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(