fixed possible memory leaks
This commit is contained in:
parent
8b822bae1c
commit
827a2a24e2
@ -16,6 +16,10 @@ decryptText(char *text, char *key)
|
||||
exit(INVALID_KEY);
|
||||
}
|
||||
|
||||
//REDEFINE KEY_LENGTH
|
||||
#undef KEY_LENGTH
|
||||
#define KEY_LENGTH strlen(key)
|
||||
|
||||
//VARIABLES
|
||||
char *returningText;
|
||||
int numberBuffer;
|
||||
|
@ -34,6 +34,10 @@ encryptText(char *text, char *keyNew)
|
||||
|
||||
strcpy(key, keyNew);
|
||||
|
||||
//REDEFINE KEY_LENGTH
|
||||
/*#undef KEY_LENGTH
|
||||
#define KEY_LENGTH strlen(key)*/
|
||||
|
||||
goto skipKey;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user