From d623ee1f10917273262e83b6a5f154151628937c Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 10 Sep 2017 19:21:29 +1000 Subject: [PATCH] Fix crash in magiedit when using ctrl-y --- utils/magiedit/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 386ada3..249b617 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -609,7 +609,7 @@ char *message_editor() { // refresh screen; position_x = 0; if (position_y <= body_line_count) { - for (i=position_y; i<= body_line_count && i < top_of_screen + 17;i++) { + for (i=position_y; i< body_line_count && i < top_of_screen + 17;i++) { od_set_cursor(i - top_of_screen + 5, 1); od_printf("%s", body_lines[i]); od_clr_line();