mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.1262
Problem: Crash and compilation warnings with Cygwin. Solution: Check return value of XmbTextListToTextProperty(). Add type casts. Adjust #ifdefs. (Lech Lorens)
This commit is contained in:
@@ -2408,7 +2408,7 @@ scripterror:
|
||||
* Look for evidence of non-Cygwin paths before we bother.
|
||||
* This is only for when using the Unix files.
|
||||
*/
|
||||
if (strpbrk(p, "\\:") != NULL && !path_with_url(p))
|
||||
if (vim_strpbrk(p, "\\:") != NULL && !path_with_url(p))
|
||||
{
|
||||
char posix_path[PATH_MAX];
|
||||
|
||||
@@ -2418,7 +2418,7 @@ scripterror:
|
||||
cygwin_conv_to_posix_path(p, posix_path);
|
||||
# endif
|
||||
vim_free(p);
|
||||
p = vim_strsave(posix_path);
|
||||
p = vim_strsave((char_u *)posix_path);
|
||||
if (p == NULL)
|
||||
mch_exit(2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user