summaryrefslogtreecommitdiff
path: root/src/input/input.c
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-24 14:20:37 -0500
committersanine-a <sanine.not@pm.me>2020-10-24 14:20:37 -0500
commit2cf300b870659a44d4e73ab65c035f6f443c3d25 (patch)
tree37e8853a58e538657c7df1e695ef45e09d15fe97 /src/input/input.c
parent08886a82517a42ad1b63d6aa42694426621c0a81 (diff)
move setup functions to honey.c
Diffstat (limited to 'src/input/input.c')
-rw-r--r--src/input/input.c3
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);
}