mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.115
Problem: Vim can crash when tmpnam() returns NULL. Solution: Check for NULL. (Hong Xu)
This commit is contained in:
parent
ba81e4660b
commit
95474ca34c
@ -7483,8 +7483,11 @@ vim_tempname(extra_char)
|
||||
# else /* WIN3264 */
|
||||
|
||||
# ifdef USE_TMPNAM
|
||||
char_u *p;
|
||||
|
||||
/* tmpnam() will make its own name */
|
||||
if (*tmpnam((char *)itmp) == NUL)
|
||||
p = tmpnam((char *)itmp);
|
||||
if (p == NULL || *p == NUL)
|
||||
return NULL;
|
||||
# else
|
||||
char_u *p;
|
||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
115,
|
||||
/**/
|
||||
114,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user