fixed possible deallocation problem

uninitialised
This commit is contained in:
Václav Šmejkal 2022-12-04 18:59:27 +01:00
parent f71647e0ff
commit dbe1ba2749
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -51,7 +51,7 @@ outputFlags encryptText(char *text, char *keyNew)
//VARIABLES //VARIABLES
char *key = malloc(getKeyLength() + 1); char *key = malloc(getKeyLength() + 1);
char *returningText; char *returningText;
char *textBuffer; char *textBuffer = malloc(1);
int *textKeyChain = malloc(sizeof(int) * strlen(text)); int *textKeyChain = malloc(sizeof(int) * strlen(text));
int numberBuffer; int numberBuffer;
FILE *fileBuffer; FILE *fileBuffer;