aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-cli.h')
-rw-r--r--com32/hdt/hdt-cli.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h
index 26fbc208..898b53f8 100644
--- a/com32/hdt/hdt-cli.h
+++ b/com32/hdt/hdt-cli.h
@@ -94,7 +94,7 @@ struct s_cli {
cli_mode_t mode;
char prompt[PROMPT_SIZE];
uint8_t cursor_pos;
- char history[MAX_HISTORY_SIZE][MAX_LINE_SIZE];
+ char history[MAX_HISTORY_SIZE+1][MAX_LINE_SIZE];
int history_pos;
int max_history_pos;
};