diff src/dosinst.h @ 15892:e43b5e6d9190 v8.1.0952

patch 8.1.0952: compilation warnings when building the MS-Windows installer commit https://github.com/vim/vim/commit/bbd854dc57e82937eb7b95af220a2f137ded64f8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 18 22:19:33 2019 +0100 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 https://github.com/vim/vim/issues/3999)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Feb 2019 22:30:06 +0100
parents aca41efd888c
children b9098585d945
line wrap: on
line diff
--- a/src/dosinst.h
+++ b/src/dosinst.h
@@ -388,7 +388,7 @@ char *(icon_link_names[ICON_COUNT]) =
 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 @@ remove_tail(char *path)
 }
 
 
-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 */