]> git.eshelyaron.com Git - emacs.git/commitdiff
(split_font_name): Make sure to leave the loop
authorGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 12:46:39 +0000 (12:46 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 12:46:39 +0000 (12:46 +0000)
with the right value of `i'.

src/ChangeLog
src/xfaces.c

index 0995e0907f6e5c2bf87ae4a251f78a9d5b64fbf4..3f6bf99a6a22fdfd2337a3645e338e37474a7811 100644 (file)
@@ -1,5 +1,8 @@
 2001-05-14  Gerd Moellmann  <gerd@gnu.org>
 
+       * xfaces.c (split_font_name): Make sure to leave the loop
+       with the right value of `i'.
+       
        * xfaces.c (split_font_name): Handle matrix transformations
        in the pixel and point size fields of XLFD font names.
        (xlfd_point_size): Likewise.
index a50ec9ae2a9dcdd66c1a1f52c705bdf0ea2c85e1..93acc8b5317b988a25085f73305925c7b120b469 100644 (file)
@@ -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