Version v0.3.41 - -m Suppress miniz library warnings, auto-select pad when only one available
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
// Version - Updated automatically by build.sh
|
||||
#define OTP_VERSION "v0.3.39"
|
||||
#define OTP_VERSION "v0.3.40"
|
||||
|
||||
// Constants
|
||||
#define MAX_INPUT_SIZE 4096
|
||||
|
||||
@@ -470,6 +470,13 @@ char* select_pad_interactive(const char* title, const char* prompt, pad_filter_t
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// If only one pad available, auto-select it
|
||||
if (pad_count == 1) {
|
||||
printf("\n%s\n", title);
|
||||
printf("Only one pad available - auto-selecting: %.16s...\n\n", pads[0].chksum);
|
||||
return strdup(pads[0].chksum);
|
||||
}
|
||||
|
||||
// Calculate minimal unique prefixes for each pad
|
||||
char prefixes[100][65];
|
||||
int prefix_lengths[100];
|
||||
|
||||
Reference in New Issue
Block a user