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)
This commit is contained in:
Bram Moolenaar
2019-02-18 22:19:33 +01:00
parent 44b443c5db
commit bbd854dc57
4 changed files with 12 additions and 10 deletions

View File

@ -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 */