implemented why2_fdopen

This commit is contained in:
Václav Šmejkal 2023-02-05 18:54:49 +01:00
parent 6844b3d218
commit b27ddb633f
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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();