Mercurial > pidgin.yaz
changeset 14044:16b05033f5ee
[gaim-migrate @ 16656]
Fixed a buffer overflow that occurred when showing large packets.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Sun, 06 Aug 2006 18:19:36 +0000 |
parents | 88ccffe0875c |
children | 3cefea0bf4a2 |
files | src/protocols/qq/qq_proxy.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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++) {