comparison src/fileio.c @ 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 ef00b6bc186b
children 695d9ef00b03
comparison
equal deleted inserted replaced
16765:1dbbc53a7a0b 16766:d2deaaf21305
7196 #ifdef MSWIN 7196 #ifdef MSWIN
7197 buf = alloc((int)MAXPATHL); 7197 buf = alloc((int)MAXPATHL);
7198 if (buf == NULL) 7198 if (buf == NULL)
7199 return FAIL; 7199 return FAIL;
7200 STRNCPY(buf, path, MAXPATHL-5); 7200 STRNCPY(buf, path, MAXPATHL-5);
7201 p = buf + strlen(buf); 7201 p = buf + STRLEN(buf);
7202 MB_PTR_BACK(buf, p); 7202 MB_PTR_BACK(buf, p);
7203 if (*p == '\\' || *p == '/') 7203 if (*p == '\\' || *p == '/')
7204 *p = NUL; 7204 *p = NUL;
7205 STRCAT(buf, "\\*"); 7205 STRCAT(buf, "\\*");
7206 7206