diff --git a/otp.c b/otp.c index 58c263b..f23f3a2 100644 --- a/otp.c +++ b/otp.c @@ -2560,7 +2560,7 @@ int handle_file_encrypt(void) { int ascii_armor = (atoi(format_input) == 2) ? 1 : 0; // Generate default output filename - char default_output[512]; + char default_output[1024]; // Increased buffer size to prevent truncation warnings if (ascii_armor) { snprintf(default_output, sizeof(default_output), "%s.otp.asc", input_file); } else {