diff options
author | Reuben Thomas <rrt@sc3d.org> | 2012-09-29 16:30:28 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2012-09-29 16:30:28 +0100 |
commit | 3d6f22f6c72b9514aa327e2f45d8c232afdd0d76 (patch) | |
tree | d63393e5f4fd50f005c292a470899030c1887e67 /src | |
parent | daa6cb6994a70c5d223eb4ffc0bd2e4fc14a2f82 (diff) | |
download | lrexlib-3d6f22f6c72b9514aa327e2f45d8c232afdd0d76.tar.gz |
lposix.c: simplify gmatch_pushsubject slightly
Diffstat (limited to 'src')
-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) { |