1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

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
This commit is contained in:
drh
2010-05-10 19:51:32 +00:00
parent 7ddccd2aad
commit 09b1330026
3 changed files with 19 additions and 9 deletions

View File

@@ -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.