summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 8b0c4e1a..03d5dfc1 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -865,7 +865,7 @@ pango_font_description_from_string (const char *str)
while (last > str && g_ascii_isspace (*(last - 1)))
last--;
- while (g_ascii_isspace (*str))
+ while (last > str && g_ascii_isspace (*str))
str++;
if (str != last)