made invalid_key message more variable

This commit is contained in:
Václav Šmejkal 2022-04-23 18:47:03 +02:00
parent 575f94055c
commit 8edf216545
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ decryptText(char *text, char *key)
//CHECK FOR INVALID key
if (strlen(key) < KEY_LENGTH)
{
fprintf(stderr, "Key must be at least 50 characters long!\n");
fprintf(stderr, "Key must be at least %d characters long!\n", KEY_LENGTH);
exit(INVALID_KEY);
}

View File

@ -28,7 +28,7 @@ encryptText(char *text, char *keyNew)
{
if (strlen(keyNew) < KEY_LENGTH)
{
fprintf(stderr, "Key must be at least 50 characters long!\n");
fprintf(stderr, "Key must be at least %d characters long!\n", KEY_LENGTH);
exit(INVALID_KEY);
}