0
0
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:
Bram Moolenaar 2011-02-09 16:44:51 +01:00
parent ba81e4660b
commit 95474ca34c
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
115,
/**/
114,
/**/