summaryrefslogblamecommitdiff
path: root/user/irssi/fix-ridiculous-egregious-conformance-error.patch
blob: ceb707c9ba456a70d6570561da6eaf56aa83ffbf (plain) (tree)


















                                                                                                   
--- irssi-1.2.0/tests/fe-text/test-paste-join-multiline.c.old	2019-02-11 17:27:58.000000000 +0000
+++ irssi-1.2.0/tests/fe-text/test-paste-join-multiline.c	2019-02-19 21:28:03.250000000 +0000
@@ -48,13 +48,15 @@
 static void test_paste_join_multiline(const paste_join_multiline_test_case *test)
 {
 	char *resultstr, *t1;
+	glong length;
 	GArray *buffer = g_array_new(FALSE, FALSE, sizeof(unichar));
 
 	g_test_message("Testing: %s", test->description);
 	g_test_message("INPUT: \"%s\"", (t1 = g_strescape(test->input, NULL)));
 	g_free(t1);
 
-	buffer->data = (char *) g_utf8_to_ucs4_fast(test->input, -1, (glong *) &buffer->len);
+	buffer->data = (char *) g_utf8_to_ucs4_fast(test->input, -1, &length);
+	buffer->len = length;
 	paste_buffer_join_lines(buffer);
 	resultstr = g_ucs4_to_utf8((unichar *) buffer->data, buffer->len, NULL, NULL, NULL);