Fix warning about conversion on mingw64

This commit is contained in:
George Zhao
2018-01-17 19:35:57 +08:00
parent bc17ad31dc
commit 06994e0e21
8 changed files with 18 additions and 14 deletions

View File

@@ -1417,7 +1417,7 @@ char_u *make_filter_cmd(char_u *cmd, char_u *itmp, char_u *otmp)
#else
// For shells that don't understand braces around commands, at least allow
// the use of commands in a pipe.
xstrlcpy(buf, cmd, len);
xstrlcpy(buf, (char *)cmd, len);
if (itmp != NULL) {
// If there is a pipe, we have to put the '<' in front of it.
// Don't do this when 'shellquote' is not empty, otherwise the