aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--actions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions.c b/actions.c
index d4096b2..6a7f55c 100644
--- a/actions.c
+++ b/actions.c
@@ -195,7 +195,7 @@ int do_actions(void *data, struct action actions[], unsigned int n_actions, int
* reference
*/
if (actions[i].call.has_ret) {
- memcpy(data + actions[i].call.ret_off,
+ memcpy((uint16_t *)data + actions[i].call.ret_off,
&c.ret, sizeof(c.ret));
}
break;