From 7b16a6bf075b9d77cd28ec59cc7059d8977802f5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 14 May 2001 12:46:39 +0000 Subject: [PATCH] (split_font_name): Make sure to leave the loop with the right value of `i'. --- src/ChangeLog | 3 +++ src/xfaces.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0995e0907f6..3f6bf99a6a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-05-14 Gerd Moellmann + * 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. 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 -- 2.39.2