From b27ddb633f01fac0e419ce139f2839b44e738df8 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 5 Feb 2023 18:54:49 +0100 Subject: [PATCH] implemented why2_fdopen --- src/logger/lib/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger/lib/utils.c b/src/logger/lib/utils.c index 7e06e74..a7bbb18 100644 --- a/src/logger/lib/utils.c +++ b/src/logger/lib/utils.c @@ -53,7 +53,7 @@ why2_decrypted_output why2_decrypt_logger(why2_log_file logger) { why2_set_memory_identifier("logger_decryption"); - FILE *file = fdopen(logger.file, "r"); + FILE *file = why2_fdopen(logger.file, "r"); why2_output_flags outputBuffer; char *rawContent; char **content; @@ -116,7 +116,7 @@ why2_decrypted_output why2_decrypt_logger(why2_log_file logger) //DEALLOCATION why2_deallocate(rawContent); - fclose(file); + why2_deallocate(file); why2_deallocate_decrypted_output((why2_decrypted_output) { content, lines }); //fuck the system lmao why2_reset_memory_identifier();