diff --git a/src/core/lib/encrypter.c b/src/core/lib/encrypter.c index 4214fa0..f336124 100644 --- a/src/core/lib/encrypter.c +++ b/src/core/lib/encrypter.c @@ -90,8 +90,7 @@ outputFlags encryptText(char *text, char *keyNew) } //ALLOCATE returningText (WITH THE SEPARATORS) - returningText = malloc(numberBuffer + strlen(text)); - strcpy(returningText, ""); + returningText = calloc(numberBuffer + strlen(text), sizeof(char)); //LOAD returningText for (int i = 0; i < (int) strlen(text); i++)