summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorSeif Lotfy <seif@lotfy.com>2012-04-21 01:35:56 +0200
committerSeif Lotfy <seif@lotfy.com>2012-04-21 01:35:56 +0200
commitb599623892a39f33c24bb43e2e6e0d14dd916e71 (patch)
tree0c2efa91cea70787ceed5e83c5146dce080d96b4 /extensions
parent4ff35adae89620776cf6c57a69ecb072645ba42d (diff)
downloadzeitgeist-b599623892a39f33c24bb43e2e6e0d14dd916e71.tar.gz
FTS Extension:
fix zeitgeist-fts crash with SIGSEGV in fast_validate()
Diffstat (limited to 'extensions')
-rw-r--r--extensions/fts++/indexer.cpp2
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