0
0
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:
Bram Moolenaar
2013-06-29 14:17:02 +02:00
parent 72179e1bd0
commit fe17e7640d
4 changed files with 15 additions and 7 deletions

View File

@@ -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);
}