mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-18 11:50:38 -08:00
* coding.c (Ffind_operation_coding_system): Avoid subscript error.
This commit is contained in:
parent
eee1346555
commit
7b09a37a89
2 changed files with 2 additions and 1 deletions
|
|
@ -9291,7 +9291,7 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS...) */)
|
|||
if (!SYMBOLP (operation)
|
||||
|| (target_idx = Fget (operation, Qtarget_idx), !NATNUMP (target_idx)))
|
||||
error ("Invalid first argument");
|
||||
if (nargs < 1 + XFASTINT (target_idx))
|
||||
if (nargs <= 1 + XFASTINT (target_idx))
|
||||
error ("Too few arguments for operation `%s'",
|
||||
SDATA (SYMBOL_NAME (operation)));
|
||||
target = args[XFASTINT (target_idx) + 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue