diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-09-17 07:02:56 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-09-17 07:02:56 +0000 |
commit | adfb9b0501e005d10aaec727fa56ed5beff0d7d0 (patch) | |
tree | 5ab83d741a99c37bae56a628f154647193bded56 /src/os_win.c | |
parent | 76ee37f9bb393e45eaf724921853668960b34294 (diff) | |
download | sqlite-adfb9b0501e005d10aaec727fa56ed5beff0d7d0.tar.gz sqlite-adfb9b0501e005d10aaec727fa56ed5beff0d7d0.zip |
Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433)
FossilOrigin-Name: 8b29f5fbfc723cdf67cf3410cd01f7c17ea39a4b
Diffstat (limited to 'src/os_win.c')
-rw-r--r-- | src/os_win.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/os_win.c b/src/os_win.c index f140054f3..4eac10b86 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -1267,7 +1267,7 @@ static int winAccess( ** Create a temporary file name in zBuf. zBuf must be big enough to ** hold at pVfs->mxPathname characters. */ -static int winGetTempname(sqlite3_vfs *pVfs, char *zBuf){ +static int winGetTempname(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ static char zChars[] = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" @@ -1319,9 +1319,10 @@ static int winGetTempname(sqlite3_vfs *pVfs, char *zBuf){ ** bytes in size. */ static int winFullPathname( - sqlite3_vfs *pVfs, - const char *zRelative, - char *zFull + sqlite3_vfs *pVfs, /* Pointer to vfs object */ + const char *zRelative, /* Possibly relative input path */ + int nFull, /* Size of output buffer in bytes */ + char *zFull /* Output buffer */ ){ #if defined(__CYGWIN__) |