Unverified Commit 94abbe70 authored by Terry Ellison's avatar Terry Ellison Committed by GitHub
Browse files

Fix #2430 node.input() not working (#2469)

parent 161c8555
...@@ -324,7 +324,7 @@ int lua_main (int argc, char **argv) { ...@@ -324,7 +324,7 @@ int lua_main (int argc, char **argv) {
} }
int lua_put_line(const char *s, size_t l) { int lua_put_line(const char *s, size_t l) {
if (s == NULL || ++l < LUA_MAXINPUT || gLoad.line_position > 0) if (s == NULL || ++l > LUA_MAXINPUT || gLoad.line_position > 0)
return 0; return 0;
c_memcpy(gLoad.line, s, l); c_memcpy(gLoad.line, s, l);
gLoad.line[l] = '\0'; gLoad.line[l] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment