diff options
author | b-r-o-c-k <brockmammen@gmail.com> | 2018-03-26 10:54:44 -0500 |
---|---|---|
committer | b-r-o-c-k <brockmammen@gmail.com> | 2018-03-26 10:54:44 -0500 |
commit | afd46b78c5b431065e8439e82ade86672baf9c08 (patch) | |
tree | d614bdb5eb432e2b1337b972c710a95c68d9197a | |
parent | a9c94f7bb05c53b1c81ec7e65f5df86947c12c58 (diff) | |
download | rneovim-afd46b78c5b431065e8439e82ade86672baf9c08.tar.gz rneovim-afd46b78c5b431065e8439e82ade86672baf9c08.tar.bz2 rneovim-afd46b78c5b431065e8439e82ade86672baf9c08.zip |
build/msvc: Fix libvterm patch
-rw-r--r-- | third-party/patches/libvterm-Remove-VLAs-for-MSVC.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third-party/patches/libvterm-Remove-VLAs-for-MSVC.patch b/third-party/patches/libvterm-Remove-VLAs-for-MSVC.patch index 3fb18351be..e999c0fa9b 100644 --- a/third-party/patches/libvterm-Remove-VLAs-for-MSVC.patch +++ b/third-party/patches/libvterm-Remove-VLAs-for-MSVC.patch @@ -23,7 +23,7 @@ index 84299df..f9aabb3 100644 // We'll have at most len codepoints - uint32_t codepoints[len]; -+ uint32_t* codepoints = _alloca(len); ++ uint32_t* codepoints = _alloca(len * sizeof(uint32_t)); int npoints = 0; size_t eaten = 0; @@ -32,7 +32,7 @@ index 84299df..f9aabb3 100644 int width = 0; - uint32_t chars[glyph_ends - glyph_starts + 1]; -+ uint32_t* chars = _alloca(glyph_ends - glyph_starts + 1); ++ uint32_t* chars = _alloca((glyph_ends - glyph_starts + 1) * sizeof(uint32_t)); for( ; i < glyph_ends; i++) { chars[i - glyph_starts] = codepoints[i]; |