summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-08-09 16:21:36 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-08-09 16:21:36 +0800
commit67a02a8fd7f6a7e2a8d68a48b71535a654518de9 (patch)
tree2f9e6599e5929488024bace59462c6d244040b7d
parentc4d138179443b49d817830c78ddcd1459cf5505f (diff)
downloadpango-67a02a8fd7f6a7e2a8d68a48b71535a654518de9.tar.gz
pango-markup.c: Fix build
The strchr() call's second parameter is a char, not a string.
-rw-r--r--pango/pango-markup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 00b16943..91def193 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1671,7 +1671,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
if (!span_parse_float ("line_height", line_height, &f, line_number, error))
goto error;
- if (f > 1024.0 && strchr (line_height, ".") == 0)
+ if (f > 1024.0 && strchr (line_height, '.') == 0)
add_attribute (tag, pango_attr_line_height_new_absolute ((int)f));
else
add_attribute (tag, pango_attr_line_height_new (f));