1
0
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:
Bram Moolenaar
2019-05-24 19:04:29 +02:00
parent 964b3746b9
commit 71de720c2c
2 changed files with 3 additions and 1 deletions

View File

@@ -7198,7 +7198,7 @@ readdir_core(
if (buf == NULL) if (buf == NULL)
return FAIL; return FAIL;
STRNCPY(buf, path, MAXPATHL-5); STRNCPY(buf, path, MAXPATHL-5);
p = buf + strlen(buf); p = buf + STRLEN(buf);
MB_PTR_BACK(buf, p); MB_PTR_BACK(buf, p);
if (*p == '\\' || *p == '/') if (*p == '\\' || *p == '/')
*p = NUL; *p = NUL;

View File

@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1385,
/**/ /**/
1384, 1384,
/**/ /**/