summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-05-28 01:03:20 +0800
committerKeuin <[email protected]>2022-05-28 01:03:20 +0800
commit15305a1351d9f7eb36b444ebd693f78a38600af0 (patch)
tree2d383c7a3cc8d684dd0f38eb3c518910e9e0de46 /main.c
parent7cd2ac6e831c259283c59cbdfec570dccff082a5 (diff)
Bugfix: decrypted file won't be saved.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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 */