summaryrefslogtreecommitdiff
path: root/src/lib/elua/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elua/io.c')
-rw-r--r--src/lib/elua/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elua/io.c b/src/lib/elua/io.c
index 15c0c44924..0bf978d6c6 100644
--- a/src/lib/elua/io.c
+++ b/src/lib/elua/io.c
@@ -167,7 +167,7 @@ read_line(lua_State *L, FILE *f)
167 if (fgets(p, LUAL_BUFFERSIZE, f) == NULL) 167 if (fgets(p, LUAL_BUFFERSIZE, f) == NULL)
168 { 168 {
169 luaL_pushresult(&b); 169 luaL_pushresult(&b);
170 return (elua_rawlen(L, -1) > 0); 170 return (elua_strlen(L, -1) > 0);
171 } 171 }
172 l = strlen(p); 172 l = strlen(p);
173 if (!l || p[l - 1] != '\n') 173 if (!l || p[l - 1] != '\n')
@@ -198,7 +198,7 @@ read_chars(lua_State *L, FILE *f, size_t n)
198 n -= nr; 198 n -= nr;
199 } while (n > 0 && nr == rlen); 199 } while (n > 0 && nr == rlen);
200 luaL_pushresult(&b); 200 luaL_pushresult(&b);
201 return (n == 0 || elua_rawlen(L, -1) > 0); 201 return (n == 0 || elua_strlen(L, -1) > 0);
202} 202}
203 203
204static int 204static int