Version v0.2.31 - fixed signed/unsigned comparison warning in enhanced input function
This commit is contained in:
2
otp.c
2
otp.c
@@ -2447,7 +2447,7 @@ int get_filename_with_default(const char* prompt, const char* default_path, char
|
||||
}
|
||||
} else if (c >= 32 && c <= 126) {
|
||||
// Printable character
|
||||
if (buffer_len < sizeof(edit_buffer) - 1) {
|
||||
if (buffer_len < (int)sizeof(edit_buffer) - 1) {
|
||||
// Move everything after cursor one position right
|
||||
memmove(&edit_buffer[cursor_pos + 1], &edit_buffer[cursor_pos], buffer_len - cursor_pos + 1);
|
||||
edit_buffer[cursor_pos] = c;
|
||||
|
||||
Reference in New Issue
Block a user