diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-02-09 14:47:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-02-09 14:47:03 +0100 |
commit | b18919146d0285cc6a4fee76de849ab1fc672d37 (patch) | |
tree | 69ef95a720c1671608266321808bd4633104258f | |
parent | 1d87f516f2133dfadba1055c3009672ca96b84bf (diff) | |
download | vim-git-b18919146d0285cc6a4fee76de849ab1fc672d37.tar.gz |
updated for version 7.3.113v7.3.113
Problem: Windows: Fall back directory for creating temp file is wrong.
Solution: Use "." instead of empty string. (Hong Xu)
-rw-r--r-- | src/fileio.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 0c7b00c2c..1360fde0c 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -7459,7 +7459,10 @@ vim_tempname(extra_char) STRCPY(itmp, ""); if (GetTempPath(_MAX_PATH, szTempFile) == 0) - szTempFile[0] = NUL; /* GetTempPath() failed, use current dir */ + { + szTempFile[0] = '.'; /* GetTempPath() failed, use current dir */ + szTempFile[1] = NUL; + } strcpy(buf4, "VIM"); buf4[2] = extra_char; /* make it "VIa", "VIb", etc. */ if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0) diff --git a/src/version.c b/src/version.c index ff5db0aa0..2dd143b5a 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 113, +/**/ 112, /**/ 111, |