fixed possible deallocation problem
uninitialised
This commit is contained in:
parent
f71647e0ff
commit
dbe1ba2749
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user