summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-05-14 12:46:12 +0000
committerGerd Moellmann <gerd@gnu.org>2001-05-14 12:46:12 +0000
commitbd2c11629e71637f8317de6d1608cfbd34ddadf4 (patch)
treed551cd7eef50ff3f8ec4604b9bab4e9ecc05f643 /src
parentdeacae03aa22d833b940ef2c4e6cc24b04148990 (diff)
downloademacs-bd2c11629e71637f8317de6d1608cfbd34ddadf4.tar.gz
(split_font_name): Make sure to leave the loop
with the right value of `i'.
Diffstat (limited to 'src')
-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