summaryrefslogtreecommitdiff
path: root/src/ftfont.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2009-04-13 12:41:33 +0000
committerKenichi Handa <handa@m17n.org>2009-04-13 12:41:33 +0000
commita8a3728b90d75d89368be8e35d5c26468e071d5c (patch)
treea7f3775c829d7114fb68d2bbe243d4e0f53a927d /src/ftfont.c
parent99c4d65db7400d28b56494fd3671471a43acb76d (diff)
downloademacs-a8a3728b90d75d89368be8e35d5c26468e071d5c.tar.gz
(get_adstyle_property): Fix previous change.
Diffstat (limited to 'src/ftfont.c')
-rw-r--r--src/ftfont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 6865478bd20..f2fa877c554 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -187,6 +187,7 @@ get_adstyle_property (FcPattern *p)
char *p = alloca (end - str + 1);
memcpy (p, str, end - str);
p[end - str] = '\0';
+ end = p + (end - str);
str = p;
}
if (xstrcasecmp (str, "Regular") == 0