diff options
author | Aki <please@ignore.pl> | 2021-08-21 22:52:58 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-21 22:52:58 +0200 |
commit | 6d09f85836097846d4450a27263adca30a8d80c9 (patch) | |
tree | cd86bd5243f0230f396bbcd748b3d8f0ed067f04 /stream.c | |
parent | 6990cca3da5c26148d79b41e4d086183592b0aea (diff) | |
download | plop-6d09f85836097846d4450a27263adca30a8d80c9.zip plop-6d09f85836097846d4450a27263adca30a8d80c9.tar.gz plop-6d09f85836097846d4450a27263adca30a8d80c9.tar.bz2 |
Fixed buffer handling by stream
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,8 +173,8 @@ int stream_readk(lua_State * L, int status, lua_KContext ctx) if (-1 != offset) { lua_pushlstring(L, &s->in.data[s->in.offset], offset - s->in.offset); - s->in.offset = offset + 1; - s->in.next = offset + 1; + s->in.offset = offset + pattern_length; + s->in.next = offset + pattern_length; } else { |