mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user