diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-04-21 01:35:56 +0200 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2012-04-21 01:35:56 +0200 |
commit | b599623892a39f33c24bb43e2e6e0d14dd916e71 (patch) | |
tree | 0c2efa91cea70787ceed5e83c5146dce080d96b4 /extensions | |
parent | 4ff35adae89620776cf6c57a69ecb072645ba42d (diff) | |
download | zeitgeist-b599623892a39f33c24bb43e2e6e0d14dd916e71.tar.gz |
FTS Extension:
fix zeitgeist-fts crash with SIGSEGV in fast_validate()
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/fts++/indexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/fts++/indexer.cpp b/extensions/fts++/indexer.cpp index af96eac7..72a5c731 100644 --- a/extensions/fts++/indexer.cpp +++ b/extensions/fts++/indexer.cpp @@ -561,7 +561,7 @@ bool Indexer::IndexUri (std::string const& uri, std::string const& origin) size_t question_mark = uri.find ('?'); if (question_mark != std::string::npos) { - std::string stripped (uri, 0, question_mark - 1); + std::string stripped (uri, 0, question_mark); basename = g_path_get_basename (stripped.c_str ()); } else |