diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-24 14:20:37 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-24 14:20:37 -0500 |
commit | 2cf300b870659a44d4e73ab65c035f6f443c3d25 (patch) | |
tree | 37e8853a58e538657c7df1e695ef45e09d15fe97 /src/input/input.c | |
parent | 08886a82517a42ad1b63d6aa42694426621c0a81 (diff) |
move setup functions to honey.c
Diffstat (limited to 'src/input/input.c')
-rw-r--r-- | src/input/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |