diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-05-14 12:46:12 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-05-14 12:46:12 +0000 |
commit | bd2c11629e71637f8317de6d1608cfbd34ddadf4 (patch) | |
tree | d551cd7eef50ff3f8ec4604b9bab4e9ecc05f643 /src/xfaces.c | |
parent | deacae03aa22d833b940ef2c4e6cc24b04148990 (diff) | |
download | emacs-bd2c11629e71637f8317de6d1608cfbd34ddadf4.tar.gz |
(split_font_name): Make sure to leave the loop
with the right value of `i'.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 3 |
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 |