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:
@@ -4194,7 +4194,7 @@ sendToLocalVim(char_u *cmd, int asExpr, char_u **result)
|
||||
size_t len = STRLEN(cmd) + STRLEN(err) + 5;
|
||||
char_u *msg;
|
||||
|
||||
msg = alloc(len);
|
||||
msg = alloc((unsigned)len);
|
||||
if (msg != NULL)
|
||||
vim_snprintf((char *)msg, len, "%s: \"%s\"", err, cmd);
|
||||
*result = msg;
|
||||
|
Reference in New Issue
Block a user