summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index a50ec9ae2a9..93acc8b5317 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2205,9 +2205,10 @@ split_font_name (f, font, numeric_p)
{
char *p = xstrlwr (font->name) + 1;
- for (; i < XLFD_LAST; ++i)
+ while (i < XLFD_LAST)
{
font->fields[i] = p;
+ ++i;
/* Pixel and point size may be of the form `[....]'. For
BNF, see XLFD spec, chapter 4. Negative values are