diff --git a/vis.c b/vis.c index f1bc7f37e..fe466902c 100644 --- a/vis.c +++ b/vis.c @@ -425,7 +425,7 @@ static void window_draw_eof(Win *win) { return; CellStyle style = win->ui->style_get(win->ui, UI_STYLE_EOF); for (Line *l = view_lines_last(view)->next; l; l = l->next) { - strcpy(l->cells[0].data, view_symbol_eof_get(view)); + strncpy(l->cells[0].data, view_symbol_eof_get(view), sizeof(l->cells[0].data)-1); l->cells[0].style = style; } }