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);
|
exit(INVALID_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//REDEFINE KEY_LENGTH
|
||||||
|
#undef KEY_LENGTH
|
||||||
|
#define KEY_LENGTH strlen(key)
|
||||||
|
|
||||||
//VARIABLES
|
//VARIABLES
|
||||||
char *returningText;
|
char *returningText;
|
||||||
int numberBuffer;
|
int numberBuffer;
|
||||||
|
@ -34,6 +34,10 @@ encryptText(char *text, char *keyNew)
|
|||||||
|
|
||||||
strcpy(key, keyNew);
|
strcpy(key, keyNew);
|
||||||
|
|
||||||
|
//REDEFINE KEY_LENGTH
|
||||||
|
/*#undef KEY_LENGTH
|
||||||
|
#define KEY_LENGTH strlen(key)*/
|
||||||
|
|
||||||
goto skipKey;
|
goto skipKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user