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)
diff --git a/src/main.c b/src/main.c
index 5c1405e..884a308 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2408,7 +2408,7 @@
* 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 @@
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);
}