From: <ro...@us...> - 2006-07-23 01:40:49
|
Revision: 16541 Author: roast Date: 2006-07-22 18:40:43 -0700 (Sat, 22 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16541&view=rev Log Message: ----------- fixed gaim_ulf parsing function. it was barfing if a corresponding required closing tag wasn't there. Modified Paths: -------------- branches/soc-2006-file-loggers/src/util.c Modified: branches/soc-2006-file-loggers/src/util.c =================================================================== --- branches/soc-2006-file-loggers/src/util.c 2006-07-23 01:10:06 UTC (rev 16540) +++ branches/soc-2006-file-loggers/src/util.c 2006-07-23 01:40:43 UTC (rev 16541) @@ -1547,6 +1547,20 @@ } c = p; } + // we can't only be expecting "</chat>". + // let's move on by clobbering the tag and, if it's exists, the newline + else { + const char *p = c; + while (*p && *p != '>') { + p++; + } + if (*p == '>') { + p++; + if (*p == '\n') + p++; + } + c = p; + } } else { /* opening tag */ if(!g_ascii_strncasecmp(c, "<?xml", 5)) { const char *p = c; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |