From: Daniel Carl Date: Wed, 21 Nov 2018 23:23:09 +0000 (+0100) Subject: Fixed -Wpointer-sign warning. X-Git-Url: https://git.owens.tech/rss.xml/rss.xml/git?a=commitdiff_plain;h=e4d877bb709759d874a8c3f4103d660a431279c4;p=vimb.git Fixed -Wpointer-sign warning. --- diff --git a/src/normal.c b/src/normal.c index 0efc0b1..5a2a27d 100644 --- a/src/normal.c +++ b/src/normal.c @@ -765,7 +765,7 @@ static void normal_view_source_loaded(WebKitWebResource *resource, data = webkit_web_resource_get_data_finish(resource, res, &length, NULL); if (data) { - text = g_strndup(data, length); + text = g_strndup((gchar*)data, length); command_spawn_editor(c, &((Arg){0, (char *)text}), NULL, NULL); g_free(data); g_free(text);