]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1385: signed/unsigned compiler warning v8.1.1385
authorBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 17:04:29 +0000 (19:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 17:04:29 +0000 (19:04 +0200)
Problem:    Signed/unsigned compiler warning.
Solution:   Use STRLEN() instead of strlen().

src/fileio.c
src/version.c

index e41f9676223cf2a8cca86b71500e6097b53e55fe..4182d563fdcd664f88a6509aec1b797f5076e77a 100644 (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;
index 678d7e8fb3342f313df4c7387cb9ac120c761cf4..a66b7a5601897fadaa57979b389360396b242825 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1385,
 /**/
     1384,
 /**/