diff options
| author | Po Lu | 2024-07-20 21:48:08 +0800 |
|---|---|---|
| committer | Po Lu | 2024-07-20 21:48:08 +0800 |
| commit | 301b97eb24ad280bdf36f562d5a95e9aff7f4a65 (patch) | |
| tree | f188225b45e716138cacc208753f6732259de9c1 /src | |
| parent | 2f875ead59abe16c4559d26883ff1db524fa22f7 (diff) | |
| download | emacs-301b97eb24ad280bdf36f562d5a95e9aff7f4a65.tar.gz emacs-301b97eb24ad280bdf36f562d5a95e9aff7f4a65.zip | |
; Fix typo in xfont.c
* src/xfont.c (xfont_list): Subtract 9 from name, not 10 + 1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfont.c b/src/xfont.c index e439b954c5e..09b5e640dde 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -487,9 +487,9 @@ xfont_list (struct frame *f, Lisp_Object spec) | |||
| 487 | if (NILP (list) && NILP (registry)) | 487 | if (NILP (list) && NILP (registry)) |
| 488 | { | 488 | { |
| 489 | /* Try iso10646-1 */ | 489 | /* Try iso10646-1 */ |
| 490 | char *r = name + len - sizeof "iso8859-1" - 1; | 490 | char *r = name + len - (sizeof "iso8859-1" - 1); |
| 491 | 491 | ||
| 492 | if (r - name + sizeof "iso10646-1" - 1 < 256) | 492 | if (r - name + (sizeof "iso10646-1" - 1) < 256) |
| 493 | { | 493 | { |
| 494 | strcpy (r, "iso10646-1"); | 494 | strcpy (r, "iso10646-1"); |
| 495 | list = xfont_list_pattern (display, name, Qiso10646_1, script); | 495 | list = xfont_list_pattern (display, name, Qiso10646_1, script); |