mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: windows assertion failure due to incorrect path length (#22324)
This commit fixes an assertion failure on windows debug builds that was introduced in https://github.com/neovim/neovim/pull/22128 .
This commit is contained in:
parent
cbd4480f97
commit
c726585ce1
@ -1607,7 +1607,7 @@ char *runtimepath_default(bool clean_arg)
|
||||
data_len = strlen(data_home);
|
||||
size_t nvim_data_size = appname_len;
|
||||
#if defined(MSWIN)
|
||||
nvim_data_size += sizeof("-data");
|
||||
nvim_data_size += sizeof("-data") - 1; // -1: NULL byte should be ignored
|
||||
#endif
|
||||
if (data_len != 0) {
|
||||
rtp_size += ((data_len + memcnt(data_home, ',', data_len)
|
||||
|
Loading…
Reference in New Issue
Block a user