From 2cf300b870659a44d4e73ab65c035f6f443c3d25 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 24 Oct 2020 14:20:37 -0500 Subject: move setup functions to honey.c --- src/input/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/input/input.c') diff --git a/src/input/input.c b/src/input/input.c index ec28695..c231157 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -182,7 +182,8 @@ int honey_key_bind(lua_State* L) } else { char* error_message; - honey_format_string(error_message, "expected 2 or 3 arguments; received %d instead", n_args); + honey_format_string(&error_message, "expected 2 or 3 arguments; received %d instead", n_args); + lua_pushstring(L, error_message); free(error_message); lua_error(L); } -- cgit v1.2.1