From a0d7415fb62cf17e1465ee19cffb3ae6e20390b3 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 19 Oct 2012 21:59:42 +0900 Subject: [PATCH] font.c (Ffont_at): Fix previous change. --- src/ChangeLog | 4 ++++ src/coding.c | 2 +- src/font.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index cef1edff87..a7f12bc37a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-10-19 Kenichi Handa + + * font.c (Ffont_at): Fix previous change. + 2012-10-19 Eli Zaretskii * puresize.h (BASE_PURESIZE): Bump the base value to 1700000. See diff --git a/src/coding.c b/src/coding.c index 412d724522..7628a9fbf2 100644 --- a/src/coding.c +++ b/src/coding.c @@ -415,7 +415,7 @@ enum iso_code_class_type ISO_shift_out, /* ISO_CODE_SO (0x0E) */ ISO_shift_in, /* ISO_CODE_SI (0x0F) */ ISO_single_shift_2_7, /* ISO_CODE_SS2_7 (0x19) */ - ISO_escape, /* ISO_CODE_SO (0x1B) */ + ISO_escape, /* ISO_CODE_ESC (0x1B) */ ISO_control_1, /* Control codes in the range 0x80..0x9F, except for the following 3 codes. */ diff --git a/src/font.c b/src/font.c index 629e8bb977..7cb4149ac4 100644 --- a/src/font.c +++ b/src/font.c @@ -4775,7 +4775,7 @@ the current buffer. It defaults to the currently selected window. */) { CHECK_NUMBER (position); CHECK_STRING (string); - if (! (0 < XINT (position) && XINT (position) < SCHARS (string))) + if (! (0 <= XINT (position) && XINT (position) < SCHARS (string))) args_out_of_range (string, position); pos = XINT (position); } -- 2.20.1