diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index 2e669f8..5f31c27 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -53,7 +53,7 @@ outputFlags decryptText(char *text, char *keyNew, inputFlags flags) //GET LENGTH OF returningText AND textKeyChain for (int i = 0; i < strlen(text); i++) { - if (text[i] == ENCRYPTION_SEPARATOR) numberBuffer++; + if (text[i] == getEncryptionSeparator()) numberBuffer++; } //SET LENGTH (numberBuffer) @@ -73,7 +73,7 @@ outputFlags decryptText(char *text, char *keyNew, inputFlags flags) //GET LENGTH OF EACH CHARACTER for (int j = 0; j < strlen(text); j++) { - if (text[j] == ENCRYPTION_SEPARATOR) break; + if (text[j] == getEncryptionSeparator()) break; numberBuffer++; } diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index 14ac9e0..509afb0 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -126,7 +126,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags) if (i != strlen(text) - 1) { textBuffer = realloc(textBuffer, 2); - sprintf(textBuffer, "%c", ENCRYPTION_SEPARATOR); + sprintf(textBuffer, "%c", getEncryptionSeparator()); strcat(returningText, textBuffer); }