0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
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;

View File

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