Mercurial > emacs
changeset 89603:7f9f2d025eee
(Fnew_fontset): Check NAME more rigidly.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 23 Oct 2003 08:42:39 +0000 |
parents | 611b87bc04a4 |
children | 333811aa4aac |
files | src/fontset.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fontset.c Fri Oct 17 07:11:54 2003 +0000 +++ b/src/fontset.c Thu Oct 23 08:42:39 2003 +0000 @@ -1378,7 +1378,7 @@ { name = Fdowncase (name); val = split_font_name_into_vector (name); - if (NILP (val)) + if (NILP (val) || NILP (AREF (val, 12)) || NILP (AREF (val, 13))) error ("Fontset name must be in XLFD format"); if (strcmp (SDATA (AREF (val, 12)), "fontset")) error ("Registry field of fontset name must be \"fontset\"");