diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index a2a7c3d..0611f41 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -54,7 +54,7 @@ outputFlags decryptText(char *text, char *key, inputFlags flags) numberBuffer++; } - textBuffer = malloc(sizeof(char) * numberBuffer); + textBuffer = malloc(numberBuffer); //LOAD textBuffer for (int j = 0; j < strlen(text); j++)