diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-04-21 01:35:56 +0200 |
---|---|---|
committer | Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> | 2012-04-21 13:19:21 +0200 |
commit | ceae1763962ac50d66653b899315e124b13e5bd7 (patch) | |
tree | 150d14c638655253433f404125fe8547963fc52a | |
parent | 75ca272b8dc4ee42bcf9ea12b17c9325612bdbd5 (diff) |
FTS Extension:
fix zeitgeist-fts crash with SIGSEGV in fast_validate()
-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 |