diff options
Diffstat (limited to 'src/h_lua.c')
-rw-r--r-- | src/h_lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/h_lua.c b/src/h_lua.c index 6bee6e2..38d318e 100644 --- a/src/h_lua.c +++ b/src/h_lua.c @@ -108,7 +108,7 @@ lua_doscript (buffer_t * script, char *name) void lua_echo (buffer_t * buf, char *str, size_t len) { - static char echo_start[] = " io.write "; + static char echo_start[] = " io.write("; char quote[200] = "]=]"; /* 197 nested comments is a problem */ if (len == 0) @@ -134,7 +134,7 @@ lua_echo (buffer_t * buf, char *str, size_t len) quote[0] = ']'; quote[strlen (quote) - 1] = quote[0]; buffer_add (buf, quote, strlen (quote)); - buffer_add (buf, "\n", 1); + buffer_add (buf, ")\n", 2); } |