From 3d1f223086a0ae5eff58d9ec1fcf67337d630bc7 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Tue, 4 Jun 2024 23:54:12 +0200 Subject: [PATCH] small fix for windows --- main.cpp | 3 +++ source/arg_func.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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