updated for version 7.3.115
Problem: Vim can crash when tmpnam() returns NULL.
Solution: Check for NULL. (Hong Xu)
diff --git a/src/fileio.c b/src/fileio.c
index 1360fde..0d4511a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7483,8 +7483,11 @@
# 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;
diff --git a/src/version.c b/src/version.c
index 728dadf..6c1bc85 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 115,
+/**/
114,
/**/
113,