Mercurial > emacs
diff src/fontset.c @ 89603:7f9f2d025eee
(Fnew_fontset): Check NAME more rigidly.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 23 Oct 2003 08:42:39 +0000 |
parents | 971778c2578c |
children | 9090f7eba02c |
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\"");