From 471c676af2b7426df84fb4f30956599e7c9d7e88 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 13 May 2022 17:31:40 +0200 Subject: [PATCH] added manual allocation for buffer just trying to fix da fukin github actionz --- src/lib/test/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/test/main.c b/src/lib/test/main.c index f4f970c..88dde1d 100644 --- a/src/lib/test/main.c +++ b/src/lib/test/main.c @@ -6,7 +6,7 @@ int main(void) { - char *buffer; + char *buffer = malloc(sizeof(int) * strlen(TEST_TEXT)); inputFlags flags = { @@ -16,7 +16,7 @@ int main(void) outputFlags encrypted = encryptText(TEST_TEXT, NULL, flags); - buffer = encrypted.outputText; //GET ENCRYPTED TEXT + strcpy(buffer, encrypted.outputText); //GET ENCRYPTED TEXT encrypted = decryptText(encrypted.outputText, encrypted.usedKey, flags);