diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-05-22 19:04:00 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-05-22 19:04:00 +0000 |
commit | 9636b0851f236742090c06660dc6e3b372208c63 (patch) | |
tree | c5d32f7e4332daf608ea99699eee64904cbdda8e /pango | |
parent | dc683af2e3834e7f615a1520dc1434085f63f89e (diff) | |
download | pango-9636b0851f236742090c06660dc6e3b372208c63.tar.gz |
Bug 339730 – Pango needlessly falls back away from a Type 1 font into a
2006-05-22 Behdad Esfahbod <behdad@gnome.org>
Bug 339730 – Pango needlessly falls back away from a Type 1 font into
a TTF font
* pango/fonts.c (find_field): Fix strncmp usage.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/fonts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index e89335e7..87c1498c 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -800,7 +800,8 @@ find_field (const FieldMap *map, int n_elements, const char *str, int len, int * for (i=0; i<n_elements; i++) { - if (map[i].str && g_ascii_strncasecmp (map[i].str, str, len) == 0) + if (map[i].str[0] && g_ascii_strncasecmp (map[i].str, str, len) == 0 && + map[i].str[len] == '\0') { if (val) *val = map[i].value; |