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

This commit is contained in:
Terry Ellison 2018-08-27 12:46:51 +01:00 committed by GitHub
parent 161c855580
commit 94abbe70cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ int lua_main (int argc, char **argv) {
}
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;
c_memcpy(gLoad.line, s, l);
gLoad.line[l] = '\0';