patch 8.1.0952: compilation warnings when building the MS-Windows installer
Problem: Compilation warnings when building the MS-Windows installer.
Solution: Fix buffer sizes. (Yasuhiro Matsumoto, closes #3999)
diff --git a/src/dosinst.h b/src/dosinst.h
index 59de932..f264f94 100644
--- a/src/dosinst.h
+++ b/src/dosinst.h
@@ -388,7 +388,7 @@
run_command(char *cmd)
{
char *cmd_path;
- char cmd_buf[BUFSIZE];
+ char cmd_buf[BUFSIZE * 2 + 35];
char *p;
/* On WinNT, 'start' is a shell built-in for cmd.exe rather than an
@@ -498,7 +498,7 @@
}
-char installdir[BUFSIZE]; /* top of the installation dir, where the
+char installdir[MAX_PATH-9]; /* top of the installation dir, where the
install.exe is located, E.g.:
"c:\vim\vim60" */
int runtimeidx; /* index in installdir[] where "vim60" starts */