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:
committed by
Bram Moolenaar
parent
2e7cba347f
commit
a34b4460c2
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user