From: Po Lu Date: Sat, 20 Jul 2024 13:48:08 +0000 (+0800) Subject: ; Fix typo in xfont.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=53c8c9608c14f761e9793cdcf5263aea7af78bb4;p=emacs.git ; Fix typo in xfont.c * src/xfont.c (xfont_list): Subtract 9 from name, not 10 + 1. (cherry picked from commit 301b97eb24ad280bdf36f562d5a95e9aff7f4a65) --- 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) 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);