mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
(font_parse_xlfd): Fix the array size of `f'.
(register_font_driver): Use EQ to compare driver->type.
This commit is contained in:
parent
ce2a515f20
commit
cf23b84580
1 changed files with 2 additions and 2 deletions
|
|
@ -751,7 +751,7 @@ font_parse_xlfd (name, font)
|
|||
int i, j;
|
||||
Lisp_Object dpi, spacing;
|
||||
int avgwidth;
|
||||
char *f[XLFD_LAST_INDEX];
|
||||
char *f[XLFD_LAST_INDEX + 1];
|
||||
Lisp_Object val;
|
||||
char *p;
|
||||
|
||||
|
|
@ -2808,7 +2808,7 @@ register_font_driver (driver, f)
|
|||
SDATA (SYMBOL_NAME (driver->type)));
|
||||
|
||||
for (prev = NULL, list = root; list; prev = list, list = list->next)
|
||||
if (list->driver->type == driver->type)
|
||||
if (EQ (list->driver->type, driver->type))
|
||||
error ("Duplicated font driver: %s", SDATA (SYMBOL_NAME (driver->type)));
|
||||
|
||||
list = malloc (sizeof (struct font_driver_list));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue