From: Sean E. <sea...@us...> - 2002-03-05 18:19:21
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv9320/src Modified Files: gtkimhtml.c Log Message: 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?) Index: gtkimhtml.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v retrieving revision 1.101 retrieving revision 1.102 diff -u -d -r1.101 -r1.102 --- gtkimhtml.c 4 Mar 2002 23:55:14 -0000 1.101 +++ gtkimhtml.c 5 Mar 2002 18:19:18 -0000 1.102 @@ -3379,6 +3379,8 @@ alltext++; alltext = alltext + strlen("<DATA ID=\"\" SIZE=\"\">") + strlen(id) + strlen(datasize); g_free(tmp); + if (atoi(datasize) > len - pos) + break; imagedata = g_malloc(atoi(datasize)); memcpy(imagedata, alltext, atoi(datasize)); |