added manual allocation for buffer

just trying to fix da fukin github actionz
This commit is contained in:
Václav Šmejkal 2022-05-13 17:31:40 +02:00
parent 67380f51cf
commit 471c676af2

View File

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