moved textKeyChain to 'variables' part

This commit is contained in:
Václav Šmejkal 2022-04-27 18:17:35 +02:00
parent 4f50c2b4bb
commit 9b57343c4c

View File

@ -26,6 +26,7 @@ decryptText(char *text, char *key)
int numberBuffer = 1; int numberBuffer = 1;
char *textBuffer; char *textBuffer;
int textKeyChainLength; int textKeyChainLength;
int *textKeyChain;
//GET LENGTH OF returningText AND textKeyChain //GET LENGTH OF returningText AND textKeyChain
for (int i = 0; i < strlen(text); i++) for (int i = 0; i < strlen(text); i++)
@ -35,7 +36,7 @@ decryptText(char *text, char *key)
//SET LENGTH (numberBuffer) //SET LENGTH (numberBuffer)
returningText = malloc(numberBuffer); returningText = malloc(numberBuffer);
int *textKeyChain = malloc(numberBuffer * sizeof(int)); textKeyChain = malloc(numberBuffer * sizeof(int));
int encryptedTextKeyChain[numberBuffer]; int encryptedTextKeyChain[numberBuffer];
textKeyChainLength = numberBuffer; textKeyChainLength = numberBuffer;