diff src/protocols/oscar/oscar.c @ 8353:8ae61bbc479f

[gaim-migrate @ 9077] Thanks for Ronnie Misra for finding this bug and figuring out what was causing it! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 27 Feb 2004 17:59:41 +0000
parents fec4c1fb2ac8
children 05c174138e94
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Fri Feb 27 01:48:11 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Fri Feb 27 17:59:41 2004 +0000
@@ -5559,8 +5559,9 @@
 
 	g_free(buf);
 	buf = gaim_markup_strip_html(buf2);
+	len = strlen(buf);
 	g_free(buf2);
-	if (strlen(buf) > c->maxvis) {
+	if (len > c->maxvis) {
 		g_free(buf);
 		return -E2BIG;
 	}