diff --git a/src/core/lib/decrypter.c b/src/core/lib/decrypter.c index 5d02234..c42a7f5 100644 --- a/src/core/lib/decrypter.c +++ b/src/core/lib/decrypter.c @@ -62,7 +62,7 @@ why2_output_flags why2_decrypt_text(char *text, char *keyNew) char *returningText; int numberBuffer = 1; int usedTextDeallocationBuffer = 0; - char *textBuffer = why2_malloc(1); + char *textBuffer = NULL; int textKeyChainLength; int *textKeyChain; char *key = why2_strdup(keyNew); //COPY keyNew TO key diff --git a/src/core/lib/encrypter.c b/src/core/lib/encrypter.c index 536e405..52f89ed 100644 --- a/src/core/lib/encrypter.c +++ b/src/core/lib/encrypter.c @@ -51,7 +51,7 @@ why2_output_flags why2_encrypt_text(char *text, char *keyNew) //VARIABLES char *key = NULL; char *returningText; - char *textBuffer = why2_malloc(1); + char *textBuffer = NULL; int *textKeyChain = why2_malloc(sizeof(int) * strlen(text)); int numberBuffer = 0;