Browse Source

Another fix due to the latest changes on the lua_regex

mingodad 8 years ago
parent
commit
a1f91a7470
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu/squirrel/sqbaselib.cpp

+ 1 - 1
SquiLu/squirrel/sqbaselib.cpp

@@ -1582,7 +1582,7 @@ SQRESULT string_gmatch_base(HSQUIRRELVM v, int isGmatch, const SQChar *src, SQIn
             }
         }
     } else {
-        sq_pushstring(v, src + ms.start_pos, ms.end_pos-ms.start_pos+1);
+        sq_pushstring(v, src + ms.start_pos, ms.end_pos-ms.start_pos);
     }
     return 1;
 }