--- fileio.c.orig Wed Sep 1 10:43:22 1999 +++ fileio.c Wed Sep 1 10:43:23 1999 @@ -3004,7 +3004,7 @@ STRCAT(itmp, TEMPNAME); if ((p = vim_strchr(itmp, '?')) != NULL) *p = extra_char; - if (mktemp((char *)itmp) == NULL) + if (mkstemp((char *)itmp) == NULL) continue; return vim_strsave(itmp); } @@ -3042,7 +3042,7 @@ STRCPY(itmp, TEMPNAME); if ((p = vim_strchr(itmp, '?')) != NULL) *p = extra_char; - if (mktemp((char *)itmp) == NULL) + if (mkstemp((char *)itmp) == NULL) # endif # endif # endif