changeset 10593:ffabeb0fdc64

[gaim-migrate @ 12005] Fix bug 1121570 - crash parsing invalid html committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 13 Feb 2005 19:12:36 +0000
parents d72fffd1b1ad
children a78d9fac8183
files src/util.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Feb 12 01:28:04 2005 +0000
+++ b/src/util.c	Sun Feb 13 19:12:36 2005 +0000
@@ -1091,7 +1091,10 @@
 						}
 						p++;
 					}
-					c = strchr(c, '>') + 1;
+					if ((c = strchr(c, '>')) != NULL)
+						c++;
+					else
+						c = p;
 					pt = g_new0(struct gaim_parse_tag, 1);
 					pt->src_tag = "font";
 					pt->dest_tag = "span";