# HG changeset patch # User Sean Egan # Date 1015352358 0 # Node ID 11827e3d714c6692bd476395bc2a91b3c8100dcd # Parent f188ae5e575b2813f8a39a5901d0a3e55567956a [gaim-migrate @ 3023] Fixed a parsing bug regarding IM images. This was most notable when trying to view images in the log viewer (you aren't able to... does anyone want an option to?) committer: Tailor Script diff -r f188ae5e575b -r 11827e3d714c src/gtkimhtml.c --- a/src/gtkimhtml.c Tue Mar 05 17:31:06 2002 +0000 +++ b/src/gtkimhtml.c Tue Mar 05 18:19:18 2002 +0000 @@ -3379,6 +3379,8 @@ alltext++; alltext = alltext + strlen("") + strlen(id) + strlen(datasize); g_free(tmp); + if (atoi(datasize) > len - pos) + break; imagedata = g_malloc(atoi(datasize)); memcpy(imagedata, alltext, atoi(datasize));