Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e3928081
Commit
e3928081
authored
Jan 24, 2009
by
Chong Yidong
Browse files
(font_parse_xlfd): Handle patterns of length < 2.
parent
289e7f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/font.c
src/font.c
+2
-2
No files found.
src/font.c
View file @
e3928081
...
...
@@ -1066,11 +1066,11 @@ font_parse_xlfd (name, font)
Lisp_Object val;
char *p;
if (len > 255)
if (len > 255
|| !len
)
/* Maximum XLFD name length is 255. */
return -1;
/* Accept "*-.." as a fully specified XLFD. */
if (name[0] == '*' && name[1] == '-')
if (name[0] == '*' &&
(len == 1 ||
name[1] == '-')
)
i = 1, f[XLFD_FOUNDRY_INDEX] = name;
else
i = 0;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment