[pango/win32-fixes: 1/3] pango-markup.c: Fix build
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/win32-fixes: 1/3] pango-markup.c: Fix build
- Date: Mon, 9 Aug 2021 08:31:10 +0000 (UTC)
commit 67a02a8fd7f6a7e2a8d68a48b71535a654518de9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Aug 9 16:21:36 2021 +0800
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(-)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]