diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-18 22:19:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-18 22:19:33 +0100 |
commit | bbd854dc57e82937eb7b95af220a2f137ded64f8 (patch) | |
tree | d7c7c22262d21d1b51634a636bf1202907b01bf5 /src/dosinst.h | |
parent | 44b443c5db7a372b2da519be15dd962c552e1355 (diff) |
patch 8.1.0952: compilation warnings when building the MS-Windows installerv8.1.0952
Problem: Compilation warnings when building the MS-Windows installer.
Solution: Fix buffer sizes. (Yasuhiro Matsumoto, closes #3999)
Diffstat (limited to 'src/dosinst.h')
-rw-r--r-- | src/dosinst.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dosinst.h b/src/dosinst.h index 59de932489..f264f945e7 100644 --- 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 */ |