diff options
author | Aki <please@ignore.pl> | 2021-08-21 16:14:30 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-21 16:14:30 +0200 |
commit | 6cefc948d37cd856d23caf00970ad3565672b016 (patch) | |
tree | be3b0f370724d9d30a21b4fa72ab6b349b0777c9 /stream.c | |
parent | f41138949b4fb13331391cf3d7570d38f04a2ce8 (diff) | |
download | plop-6cefc948d37cd856d23caf00970ad3565672b016.zip plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.gz plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.bz2 |
Removed stream dependency from buffer
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ int stream_readk(lua_State * L, int status, lua_KContext ctx) int remaining_bytes; do { - remaining_bytes = prepare_at_least(L, s, (int) pattern_length, ctx); + remaining_bytes = prepare_at_least(L, s->fd, &s->in, (int) pattern_length, ctx); offset = until(&s->in, pattern, (int) pattern_length); } while (-1 == offset && 0 < remaining_bytes); |