Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 09ea57f146 | |||
| 0ae2423f19 |
7
otp.c
7
otp.c
@@ -315,9 +315,8 @@ int command_line_mode(int argc, char* argv[]) {
|
||||
}
|
||||
free(default_pad);
|
||||
|
||||
// Call encrypt_text and then comment about using default pad
|
||||
int result = encrypt_text(pad_identifier, text);
|
||||
return result;
|
||||
// Call encrypt_text and return result
|
||||
return encrypt_text(pad_identifier, text);
|
||||
} else {
|
||||
printf("Error: No default pad configured. Specify pad explicitly or configure default pad.\n");
|
||||
return 1;
|
||||
@@ -1531,7 +1530,7 @@ int encrypt_text(const char* pad_identifier, const char* input_text) {
|
||||
if (is_interactive) {
|
||||
printf("\n\n%s\n\n", ascii_output);
|
||||
} else {
|
||||
printf("%s", ascii_output);
|
||||
printf("%s\n", ascii_output); // Add newline for proper piping with tee
|
||||
}
|
||||
|
||||
// Cleanup
|
||||
|
||||
Reference in New Issue
Block a user