From 4a4c2d5ac322d61e789a7d732e2ac25951984c3f Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 6 May 2020 21:23:19 +0200 Subject: Remove conversion warnings --- src/themes/standard/theme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/themes/standard/theme.c') diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 4ab72de..1b553e6 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -845,6 +845,7 @@ void notification_tick(GtkWindow* nw, glong remaining) void set_notification_text(GtkWindow* nw, const char* summary, const char* body) { char* str; + size_t str_len; char* quoted; GtkRequisition req; WindowData* windata; @@ -864,7 +865,8 @@ void set_notification_text(GtkWindow* nw, const char* summary, const char* body) xmlInitParser(); str = g_strconcat ("", body, "", NULL); /* parse notification body */ - doc = xmlReadMemory(str, strlen (str), "noname.xml", NULL, 0); + str_len = strlen (str); + doc = xmlReadMemory(str, (int) str_len, "noname.xml", NULL, 0); g_free (str); if (doc != NULL) { xmlXPathContextPtr xpathCtx; -- cgit v1.2.1