From 5b1fb627951ffc9ad178b949043bbe5e4d2e54b8 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Mon, 28 Aug 2023 12:46:14 +0200 Subject: [PATCH] Fix prints --- Password_manager/source/arg_func.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Password_manager/source/arg_func.cpp b/Password_manager/source/arg_func.cpp index 1198592..bba7450 100644 --- a/Password_manager/source/arg_func.cpp +++ b/Password_manager/source/arg_func.cpp @@ -112,6 +112,7 @@ std::optional 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); } }