Fix prints
This commit is contained in:
parent
bee60daef6
commit
5b1fb62795
@ -112,6 +112,7 @@ std::optional<LoginInfoPointer> arg_new_password(Buffer& decrypted_buffer, Buffe
|
||||
}
|
||||
else
|
||||
{
|
||||
printf_s("Input new password: \n");
|
||||
password = get_user_password();
|
||||
if (password.empty())
|
||||
{
|
||||
@ -220,10 +221,11 @@ void arg_print_all_p(Buffer& decrypted_buffer, std::string& user_pass)
|
||||
Index* index = (Index*)decrypted_buffer.buffer;
|
||||
LoginInfo* pass = (LoginInfo*)(decrypted_buffer.buffer + sizeof(Index));
|
||||
|
||||
printf_s("\n");
|
||||
for (size_t i = 0; i < index->count; i++)
|
||||
{
|
||||
printf_s("label: %s\t\t", decrypted_buffer.buffer + pass[i].label + index->offset);
|
||||
printf_s("username: %s\t\t", decrypted_buffer.buffer + pass[i].username + index->offset);
|
||||
printf_s("label: %-10s\t\t", decrypted_buffer.buffer + pass[i].label + index->offset);
|
||||
printf_s("username: %-10s\t\t", decrypted_buffer.buffer + pass[i].username + index->offset);
|
||||
printf_s("password: %s\n", decrypted_buffer.buffer + pass[i].password + index->offset);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user