From df1e3c952e5f9124b3f709352a57679c471273b4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 23 Oct 2003 08:42:39 +0000 Subject: [PATCH] (Fnew_fontset): Check NAME more rigidly. --- src/fontset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontset.c b/src/fontset.c index 82628c2585c..51938488680 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -1378,7 +1378,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of { 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\""); -- 2.39.2