From eaab8e494d6db6ebe0d745d6c9c55d5ba01e133b Mon Sep 17 00:00:00 2001 From: erw7 Date: Tue, 5 Jan 2021 15:09:43 +0900 Subject: buffer.c: fix problem of memory allocation --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 0134ee838d..004ef8aa41 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3486,7 +3486,7 @@ int build_stl_str_hl( stl_items = xmalloc(sizeof(stl_item_t) * stl_items_len); stl_groupitems = xmalloc(sizeof(int) * stl_items_len); stl_hltab = xmalloc(sizeof(stl_hlrec_t) * stl_items_len); - stl_tabtab = xmalloc(sizeof(stl_hlrec_t) * stl_items_len); + stl_tabtab = xmalloc(sizeof(StlClickRecord) * stl_items_len); stl_separator_locations = xmalloc(sizeof(int) * stl_items_len); } -- cgit