0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0494: build failure with older compiler on MS-Windows

Problem:    Build failure with older compiler on MS-Windows.
Solution:   Move declaration to start of block.
This commit is contained in:
Bram Moolenaar
2017-03-19 21:47:50 +01:00
parent 15618fa643
commit 1662ce104e
4 changed files with 8 additions and 5 deletions

View File

@@ -2111,7 +2111,7 @@ Messaging_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
char *err = _(e_invexprmsg);
size_t len = STRLEN(str) + STRLEN(err) + 5;
res = alloc(len);
res = alloc((unsigned)len);
if (res != NULL)
vim_snprintf((char *)res, len, "%s: \"%s\"", err, str);
reply.dwData = COPYDATA_ERROR_RESULT;