1
Fork 0
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:
Paul Eggert 2011-09-27 09:31:12 -07:00
parent eee1346555
commit 7b09a37a89
2 changed files with 2 additions and 1 deletions

View file

@ -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];