1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

; Fix typo in xfont.c

* src/xfont.c (xfont_list): Subtract 9 from name, not 10 + 1.
This commit is contained in:
Po Lu 2024-07-20 21:48:08 +08:00
parent 2f875ead59
commit 301b97eb24

View file

@ -487,9 +487,9 @@ xfont_list (struct frame *f, Lisp_Object spec)
if (NILP (list) && NILP (registry))
{
/* Try iso10646-1 */
char *r = name + len - sizeof "iso8859-1" - 1;
char *r = name + len - (sizeof "iso8859-1" - 1);
if (r - name + sizeof "iso10646-1" - 1 < 256)
if (r - name + (sizeof "iso10646-1" - 1) < 256)
{
strcpy (r, "iso10646-1");
list = xfont_list_pattern (display, name, Qiso10646_1, script);