Commit: patch 9.1.1207: MS-Windows: build warning in filepath.c

1 view
Skip to first unread message

Christian Brabandt

unread,
Mar 16, 2025, 2:15:14 PM3/16/25
to vim...@googlegroups.com
patch 9.1.1207: MS-Windows: build warning in filepath.c

Commit: https://github.com/vim/vim/commit/1064426d15e7729f4cb63802faf2eee96c39d83f
Author: John Marriott <basi...@internode.on.net>
Date: Sun Mar 16 19:06:31 2025 +0100

patch 9.1.1207: MS-Windows: build warning in filepath.c

Problem: MS-Windows: build warning in filepath.c
(after v9.1.1204)
Solution: add type cast (John Marriott)

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/filepath.c b/src/filepath.c
index 1c15b8d36..080a58e8a 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -3594,7 +3594,7 @@ dos_expandpath(
}

// Scan all files in the directory with "dir/ *.*"
- vim_snprintf(s, buflen - len, "*.*");
+ vim_snprintf((char *)s, buflen - len, "*.*");
wn = enc_to_utf16(buf, NULL);
if (wn != NULL)
hFind = FindFirstFileW(wn, &wfb);
diff --git a/src/version.c b/src/version.c
index 27ea59644..803bef596 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1207,
/**/
1206,
/**/
Reply all
Reply to author
Forward
0 new messages