diff options
Diffstat (limited to 'src/fontset.c')
| -rw-r--r-- | src/fontset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c index 056ef31e4f1..3397502a2fd 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1646,7 +1646,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of | |||
| 1646 | char xlfd[256]; | 1646 | char xlfd[256]; |
| 1647 | int len; | 1647 | int len; |
| 1648 | 1648 | ||
| 1649 | if (font_parse_xlfd (SSDATA (name), font_spec) < 0) | 1649 | if (font_parse_xlfd (SSDATA (name), SBYTES (name), font_spec) < 0) |
| 1650 | error ("Fontset name must be in XLFD format"); | 1650 | error ("Fontset name must be in XLFD format"); |
| 1651 | short_name = AREF (font_spec, FONT_REGISTRY_INDEX); | 1651 | short_name = AREF (font_spec, FONT_REGISTRY_INDEX); |
| 1652 | if (strncmp (SSDATA (SYMBOL_NAME (short_name)), "fontset-", 8) | 1652 | if (strncmp (SSDATA (SYMBOL_NAME (short_name)), "fontset-", 8) |