forked from aniani/vim
patch 8.1.1385: signed/unsigned compiler warning
Problem: Signed/unsigned compiler warning. Solution: Use STRLEN() instead of strlen().
This commit is contained in:
@@ -7198,7 +7198,7 @@ readdir_core(
|
||||
if (buf == NULL)
|
||||
return FAIL;
|
||||
STRNCPY(buf, path, MAXPATHL-5);
|
||||
p = buf + strlen(buf);
|
||||
p = buf + STRLEN(buf);
|
||||
MB_PTR_BACK(buf, p);
|
||||
if (*p == '\\' || *p == '/')
|
||||
*p = NUL;
|
||||
|
Reference in New Issue
Block a user