# HG changeset patch # User Mark Huetsch # Date 1154888376 0 # Node ID 16b05033f5ee9559306d72bade0ac4ac73cecff9 # Parent 88ccffe0875cbde9e1a49ed3d1bd6bc6d1e04928 [gaim-migrate @ 16656] Fixed a buffer overflow that occurred when showing large packets. committer: Tailor Script diff -r 88ccffe0875c -r 16b05033f5ee src/protocols/qq/qq_proxy.c --- a/src/protocols/qq/qq_proxy.c Sat Aug 05 17:40:38 2006 +0000 +++ b/src/protocols/qq/qq_proxy.c Sun Aug 06 18:19:36 2006 +0000 @@ -56,7 +56,7 @@ void _qq_show_packet(gchar *desc, gchar *buf, gint len) { - char buf1[4096], buf2[10]; + char buf1[8*len+2], buf2[10]; int i; buf1[0] = 0; for (i = 0; i < len; i++) {