made invalid_key message more variable
This commit is contained in:
parent
575f94055c
commit
8edf216545
@ -12,7 +12,7 @@ decryptText(char *text, char *key)
|
|||||||
//CHECK FOR INVALID key
|
//CHECK FOR INVALID key
|
||||||
if (strlen(key) < KEY_LENGTH)
|
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);
|
exit(INVALID_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ encryptText(char *text, char *keyNew)
|
|||||||
{
|
{
|
||||||
if (strlen(keyNew) < KEY_LENGTH)
|
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);
|
exit(INVALID_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user