diff options
author | erw7 <erw7.github@gmail.com> | 2021-01-05 15:09:43 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2021-01-05 15:09:43 +0900 |
commit | eaab8e494d6db6ebe0d745d6c9c55d5ba01e133b (patch) | |
tree | 055a63a32ed520945bee3f8a74db21242e21c0dc /src | |
parent | 9223d1450d391b06cd59f8469c53291281899c9f (diff) | |
download | rneovim-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.c | 2 |
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); } |