changeset 37716:018b29727e8d

(split_font_name): Make sure to leave the loop with the right value of `i'.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 14 May 2001 12:46:12 +0000
parents 40fe2e8b2b3c
children e1931e0f4ed1
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Mon May 14 12:25:46 2001 +0000
+++ b/src/xfaces.c	Mon May 14 12:46:12 2001 +0000
@@ -2205,9 +2205,10 @@
     {
       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