diff options
-rw-r--r-- | src/posix/lposix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/posix/lposix.c b/src/posix/lposix.c index 61582ab..e8ed93e 100644 --- a/src/posix/lposix.c +++ b/src/posix/lposix.c @@ -148,10 +148,8 @@ static void gmatch_pushsubject (lua_State *L, TArgExec *argE) { if (argE->eflags & REG_STARTEND) lua_pushlstring (L, argE->text, argE->textlen); else - lua_pushlstring (L, argE->text, strlen (argE->text)); -#else - lua_pushlstring (L, argE->text, strlen (argE->text)); #endif + lua_pushstring (L, argE->text); } static int findmatch_exec (TPosix *ud, TArgExec *argE) { |