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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user