aboutsummaryrefslogtreecommitdiff
path: root/lzio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.c')
-rw-r--r--lzio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lzio.c b/lzio.c
index c2649eb2..7ae7abb5 100644
--- a/lzio.c
+++ b/lzio.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.c,v 1.19 2002/06/06 12:40:22 roberto Exp roberto $ 2** $Id: lzio.c,v 1.20 2002/08/05 18:45:02 roberto Exp roberto $
3** a generic input stream interface 3** a generic input stream interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,7 +16,7 @@
16 16
17int luaZ_fill (ZIO *z) { 17int luaZ_fill (ZIO *z) {
18 size_t size; 18 size_t size;
19 const char *buff = z->reader(z->data, &size); 19 const char *buff = z->reader(NULL, z->data, &size);
20 if (buff == NULL || size == 0) return EOZ; 20 if (buff == NULL || size == 0) return EOZ;
21 z->n = size - 1; 21 z->n = size - 1;
22 z->p = buff; 22 z->p = buff;