0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.5077: various warnings from clang on MS-Windows

Problem:    Various warnings from clang on MS-Windows.
Solution:   Avoid the warnings. (Yegappan Lakshmanan, closes #10553)
This commit is contained in:
Yegappan Lakshmanan
2022-06-11 10:43:26 +01:00
committed by Bram Moolenaar
parent 2e7cba347f
commit a34b4460c2
7 changed files with 24 additions and 18 deletions

View File

@@ -191,7 +191,8 @@ shortpath_for_invalid_fname(
}
// concat the not-shortened part of the path
vim_strncpy(*fname + len, endp, sfx_len);
if ((*fname + len) != endp)
vim_strncpy(*fname + len, endp, sfx_len);
(*fname)[new_len] = NUL;
}