diff --git a/main.cpp b/main.cpp index 00e7d46..a0e4f10 100644 --- a/main.cpp +++ b/main.cpp @@ -145,6 +145,9 @@ int main(int argc, char **argv) case Arg::File: arg_file(decrypted_buffer, encrypted_buffer, label, crypto, save_location_path.value()); break; + + default: + break; } if (!login_info.has_value()) diff --git a/source/arg_func.cpp b/source/arg_func.cpp index cd6373d..5b158f6 100644 --- a/source/arg_func.cpp +++ b/source/arg_func.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "arg_func.hpp" #include "func.hpp" @@ -335,5 +336,5 @@ void arg_file(Buffer &decrypted_buffer, Buffer &encrypted_buffer, const char *la return; crypto.encrypt(&decrypted_buffer, &encrypted_buffer); - encrypted_buffer.save_to_file(save); + encrypted_buffer.save_to_file(save.string()); } \ No newline at end of file