changeset 16766:d2deaaf21305 v8.1.1385

patch 8.1.1385: signed/unsigned compiler warning commit https://github.com/vim/vim/commit/71de720c2c117137185a6fc233b35aab37f0d4bc Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 19:04:29 2019 +0200 patch 8.1.1385: signed/unsigned compiler warning Problem: Signed/unsigned compiler warning. Solution: Use STRLEN() instead of strlen().
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 19:15:05 +0200
parents 1dbbc53a7a0b
children 3959544fc067
files src/fileio.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1385,
+/**/
     1384,
 /**/
     1383,