commit | 71de720c2c117137185a6fc233b35aab37f0d4bc | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri May 24 19:04:29 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri May 24 19:04:29 2019 +0200 |
tree | 3bcdf7afa66ac56f7c94dad609b1d69ec4ffa9e7 | |
parent | 964b3746b9c81e65887e2ac9a335f181db2bb592 [diff] [blame] |
patch 8.1.1385: signed/unsigned compiler warning Problem: Signed/unsigned compiler warning. Solution: Use STRLEN() instead of strlen().
diff --git a/src/fileio.c b/src/fileio.c index e41f967..4182d56 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -7198,7 +7198,7 @@ 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;