From 67a02a8fd7f6a7e2a8d68a48b71535a654518de9 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 9 Aug 2021 16:21:36 +0800 Subject: pango-markup.c: Fix build The strchr() call's second parameter is a char, not a string. --- pango/pango-markup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pango/pango-markup.c') 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)); -- cgit v1.2.1