diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-06-19 10:21:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 02:21:33 +0000 |
| commit | fb8dba413f2bcaa61c15d1854b28112e3e91a035 (patch) | |
| tree | 51634bd42a1e38f52824f7ce915e18f5337237d5 /runtime/lua/vim/_extui/shared.lua | |
| parent | 8ed6f00ab06dbd99ad37da1db0ad0d132865b865 (diff) | |
| download | rneovim-fb8dba413f2bcaa61c15d1854b28112e3e91a035.tar.gz rneovim-fb8dba413f2bcaa61c15d1854b28112e3e91a035.tar.bz2 rneovim-fb8dba413f2bcaa61c15d1854b28112e3e91a035.zip | |
vim-patch:9.1.1467: too many strlen() calls (#34572)
Problem: too many strlen() calls
Solution: Change expand_env() to return string length
(John Marriott)
This commit does the following changes:
- In expand_env_esc():
- return the length of the returned dst string.
- refactor to remove some calls to STRLEN() and STRCAT()
- add check for out-of-memory condition.
- Change call sites in various source files to use the return value
closes: vim/vim#17561
https://github.com/vim/vim/commit/fff0132399082b7d012d0c1291cf0c6c99e200ff
Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
0 files changed, 0 insertions, 0 deletions