summaryrefslogtreecommitdiffhomepage
path: root/stream.c
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-21 16:14:30 +0200
committerAki <please@ignore.pl>2021-08-21 16:14:30 +0200
commit6cefc948d37cd856d23caf00970ad3565672b016 (patch)
treebe3b0f370724d9d30a21b4fa72ab6b349b0777c9 /stream.c
parentf41138949b4fb13331391cf3d7570d38f04a2ce8 (diff)
downloadplop-6cefc948d37cd856d23caf00970ad3565672b016.zip
plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.gz
plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.bz2
Removed stream dependency from buffer
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index f04806e..cb5eff5 100644
--- a/stream.c
+++ b/stream.c
@@ -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);