From 15305a1351d9f7eb36b444ebd693f78a38600af0 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 28 May 2022 01:03:20 +0800 Subject: Bugfix: decrypted file won't be saved. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index d4e8fdd..97dac06 100644 --- a/main.c +++ b/main.c @@ -241,7 +241,7 @@ int main(int argc, char *argv[]) { return 0; } - const char *plaintext_save_path = (argc == 3) ? (argv[2]) : NULL; + const char *plaintext_save_path = (argc >= 3) ? (argv[2]) : NULL; const char *ciphertext_file_path = argv[1]; /* open file */ -- cgit v1.2.3