Browse Source

Fix an of by one bug after refactoring/fix lua pattern.

mingodad 8 years ago
parent
commit
4f94ded3d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu-ext/sq_sqlite3.cpp

+ 1 - 1
SquiLu-ext/sq_sqlite3.cpp

@@ -1891,7 +1891,7 @@ static void sqlite3_lua_find_base( sqlite3_context *context, int argc, sqlite3_v
                     push_match_capture(context, 0, &ms);
                 }
             } else {
-                sqlite3_result_text(context, subject + ms.start_pos, ms.end_pos-ms.start_pos+1, SQLITE_TRANSIENT);
+                sqlite3_result_text(context, subject + ms.start_pos, ms.end_pos-ms.start_pos, SQLITE_TRANSIENT);
             }
         }
         break;