We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf998e5 commit 89105dcCopy full SHA for 89105dc
src/otp/algorithms/yandex_otp_maker.rs
@@ -76,7 +76,7 @@ where
76
77
let parsed_secret = &decoded_secret.as_slice()[0..SECRET_LENGHT];
78
79
- let mut pin_with_secret: Vec<u8> = Vec::with_capacity(pin.as_bytes().len() + SECRET_LENGHT);
+ let mut pin_with_secret: Vec<u8> = Vec::with_capacity(pin.len() + SECRET_LENGHT);
80
81
pin_with_secret.append(&mut pin.as_bytes().to_vec());
82
pin_with_secret.append(&mut parsed_secret.to_vec());
0 commit comments