aboutsummarylogtreecommitdiffstats
path: root/rc4.c
diff options
context:
space:
mode:
Diffstat (limited to 'rc4.c')
-rw-r--r--rc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc4.c b/rc4.c
index 040c5d7f18c2..9ac5352febcb 100644
--- a/rc4.c
+++ b/rc4.c
@@ -102,7 +102,7 @@ void portfolio_write_encrypt_decrypt(int crypt_opt) {
puts("You will be asked to enter your password again to make sure the entries match.");
sleep(2); // Sleep so user can read above message before ncurses initscr()
char* password_check = rc4_ncurses_get_password(); // Get password a second time
- if (strcmp(password, password_check) != 0) { // Make sure the two passwords are the same
+ if (!streq(password, password_check)) { // Make sure the two passwords are the same
free(password_check);
GOTO_CLEAN_MSG("Passwords do not match!")
}