aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-01-05 18:33:40 +0000
committerdrh <drh@noemail.net>2012-01-05 18:33:40 +0000
commite025d9a096885a825677796f4bfc8bf08bdf59a0 (patch)
tree325b41875d8a900f8c0826b2fe02a576cf62dd49 /src
parente349519f1eec8ad81105b49ef3869fa743f8fe93 (diff)
downloadsqlite-e025d9a096885a825677796f4bfc8bf08bdf59a0.tar.gz
sqlite-e025d9a096885a825677796f4bfc8bf08bdf59a0.zip
Fix an incorrect assert() on the sqlite3FileSuffix3() function.
FossilOrigin-Name: 24db54bd49ed91c74a9797faca02df2d39553240
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 4a332a5e9..6ff791a80 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1176,7 +1176,7 @@ int sqlite3AbsInt32(int x){
** test.db-mj7f3319fa => test.9fa
*/
void sqlite3FileSuffix3(const char *zBaseFilename, char *z){
- assert( zBaseFilename[strlen(zBaseFilename)+1]==0 );
+ assert( z[strlen(z)+1]==0 ); /* z[] has no query parameters */
#if SQLITE_ENABLE_8_3_NAMES<2
if( sqlite3_uri_boolean(zBaseFilename, "8_3_names", 0) )
#endif