aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2021-01-05 15:09:43 +0900
committererw7 <erw7.github@gmail.com>2021-01-05 15:09:43 +0900
commiteaab8e494d6db6ebe0d745d6c9c55d5ba01e133b (patch)
tree055a63a32ed520945bee3f8a74db21242e21c0dc /src
parent9223d1450d391b06cd59f8469c53291281899c9f (diff)
downloadrneovim-eaab8e494d6db6ebe0d745d6c9c55d5ba01e133b.tar.gz
rneovim-eaab8e494d6db6ebe0d745d6c9c55d5ba01e133b.tar.bz2
rneovim-eaab8e494d6db6ebe0d745d6c9c55d5ba01e133b.zip
buffer.c: fix problem of memory allocation
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
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);
}