aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 629e8bb977a..7cb4149ac4e 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4775,7 +4775,7 @@ the current buffer. It defaults to the currently selected window. */)
4775 { 4775 {
4776 CHECK_NUMBER (position); 4776 CHECK_NUMBER (position);
4777 CHECK_STRING (string); 4777 CHECK_STRING (string);
4778 if (! (0 < XINT (position) && XINT (position) < SCHARS (string))) 4778 if (! (0 <= XINT (position) && XINT (position) < SCHARS (string)))
4779 args_out_of_range (string, position); 4779 args_out_of_range (string, position);
4780 pos = XINT (position); 4780 pos = XINT (position);
4781 } 4781 }