pidgin/android/libpurple2

c2cb04f2632a
Parents 1291865005fc
Children 8fb3a43b1469
Increase size of static buffer in gtkimhtml from 1KiB to 16KiB.

1 KiB isn't enough for long URLs and we would attempt to send
malformed HTML in that case because the return value would not
include the closing ">

This might address one of the problems this guy mentioned:
http://pidgin.im/pipermail/support/2013-March/012981.html
It's hard to know for sure... I couldn't test receiving long
URLs until I made this change, and now that I've made it I'm
able to receive URLs with no problems.
--- a/pidgin/gtkimhtml.c Sat Mar 02 13:59:59 2013 -0500
+++ b/pidgin/gtkimhtml.c Sun Mar 03 19:58:06 2013 -0800
@@ -5094,7 +5094,7 @@
static const gchar *tag_to_html_start(GtkTextTag *tag)
{
const gchar *name;
- static gchar buf[1024];
+ static gchar buf[16384];
name = tag->name;
g_return_val_if_fail(name != NULL, "");