From: Stefan Monnier Date: Thu, 8 Sep 2022 20:15:04 +0000 (-0400) Subject: * src/keyboard.c (safe_run_hook_funcall): Fix thinko X-Git-Tag: emacs-29.0.90~1856^2~659 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ab183a0f9e9998996b7da86c5f78dbd1f199655;p=emacs.git * src/keyboard.c (safe_run_hook_funcall): Fix thinko --- 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 ();