diff options
author | drh <drh@noemail.net> | 2010-05-10 19:51:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-05-10 19:51:32 +0000 |
commit | 09b1330026c4ddca07f53d5487a177fb81e50ab6 (patch) | |
tree | 9045f6ae7f71fd30170d27480ba4494d161c3a53 /src/os_unix.c | |
parent | 7ddccd2aad91f668f1c82a1143ed9158183e461d (diff) | |
download | sqlite-09b1330026c4ddca07f53d5487a177fb81e50ab6.tar.gz sqlite-09b1330026c4ddca07f53d5487a177fb81e50ab6.zip |
Fix an off-by-one error while constructing the name of the mmap file for
the wal-index under os_unix.c.
FossilOrigin-Name: 6e3735f72cb7d2f4d16c8f9bc59ff159c75243e5
Diffstat (limited to 'src/os_unix.c')
-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 8c10d1ed3..7cc55c913 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4974,7 +4974,7 @@ static int unixShmOpen( } memset(pNew, 0, sizeof(*pNew)); pNew->zFilename = (char*)&pNew[1]; - sqlite3_snprintf(nName+10, pNew->zFilename, "%s-wal-index", zName); + sqlite3_snprintf(nName+11, pNew->zFilename, "%s-wal-index", zName); /* Look to see if there is an existing unixShmFile that can be used. ** If no matching unixShmFile currently exists, create a new one. |