From 6ab183a0f9e9998996b7da86c5f78dbd1f199655 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 8 Sep 2022 16:15:04 -0400 Subject: [PATCH] * src/keyboard.c (safe_run_hook_funcall): Fix thinko --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index f562b71d317..ca51c80da04 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1892,7 +1892,7 @@ safe_run_hook_funcall (ptrdiff_t nargs, Lisp_Object *args) Lisp_Object *newargs; SAFE_ALLOCA_LISP (newargs, nargs); newargs[0] = hook, newargs[1] = fun; - memcpy (args + 2, newargs + 2, (nargs - 2) * word_size); + memcpy (newargs + 2, args + 2, (nargs - 2) * word_size); internal_condition_case_n (safe_run_hooks_1, nargs, newargs, Qt, safe_run_hooks_error); SAFE_FREE (); -- 2.39.2