diff options
author | drh <drh@noemail.net> | 2007-06-19 10:50:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-06-19 10:50:38 +0000 |
commit | 63fff5f7a58096d18bc0fecff1f6142624b5513d (patch) | |
tree | 6f8338d5e0aa28aa6df7871bd96c81ea934222f1 /src | |
parent | 74792b2f91fd252cb480d39e405a078a8ff30127 (diff) | |
download | sqlite-63fff5f7a58096d18bc0fecff1f6142624b5513d.tar.gz sqlite-63fff5f7a58096d18bc0fecff1f6142624b5513d.zip |
Cast the 2nd parameter of ftruncate to off_t to work around bugs in
some unix implementations. Ticket #2425. (CVS 4089)
FossilOrigin-Name: 0b20a69609c64af922bedab381f7d075e9da4fc5
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 873fc041e..0bb9feef0 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1271,7 +1271,7 @@ int sqlite3UnixSyncDirectory(const char *zDirname){ static int unixTruncate(OsFile *id, i64 nByte){ int rc; assert( id ); - rc = ftruncate(((unixFile*)id)->h, nByte); + rc = ftruncate(((unixFile*)id)->h, (off_t)nByte); SimulateIOError( rc=1 ); if( rc ){ return SQLITE_IOERR_TRUNCATE; |