diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/jabber/jabber.c | 2 | ||||
| -rw-r--r-- | protocols/jabber/xmlparse.c | 25 | ||||
| -rw-r--r-- | protocols/nogaim.c | 3 | ||||
| -rw-r--r-- | protocols/oscar/oscar_util.c | 4 | ||||
| -rw-r--r-- | protocols/oscar/service.c | 3 | 
5 files changed, 26 insertions, 11 deletions
| diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 54eed8a7..ac6481a1 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -1548,7 +1548,9 @@ static gboolean jabber_free(gpointer data)  	if(jd->gjc != NULL) {  		gjab_delete(jd->gjc); +		/* YAY for modules with their own memory pool managers!...  		g_free(jd->gjc->sid); +		And a less sarcastic yay for valgrind. :-) */  		jd->gjc = NULL;  	}  	g_free(jd); diff --git a/protocols/jabber/xmlparse.c b/protocols/jabber/xmlparse.c index 492da948..bbef7d59 100644 --- a/protocols/jabber/xmlparse.c +++ b/protocols/jabber/xmlparse.c @@ -1460,7 +1460,7 @@ initializeEncoding(XML_Parser parser)  #else  s = protocolEncodingName;  #endif -    if ((ns ? XmlInitEncodingNS : XmlInitEncoding)(&initEncoding, &encoding, s)) +    if (ns ? XmlInitEncodingNS(&initEncoding, &encoding, s) : XmlInitEncoding(&initEncoding, &encoding, s))          return XML_ERROR_NONE;      return handleUnknownEncoding(parser, protocolEncodingName);  } @@ -1474,8 +1474,7 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,      const char *version;      int standalone = -1;      if (!(ns -            ? XmlParseXmlDeclNS -            : XmlParseXmlDecl)(isGeneralTextEntity, +            ? XmlParseXmlDeclNS(isGeneralTextEntity,                                 encoding,                                 s,                                 next, @@ -1483,7 +1482,16 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,                                 &version,                                 &encodingName,                                 &newEncoding, -                               &standalone)) +                               &standalone) +            : XmlParseXmlDecl(isGeneralTextEntity, +                               encoding, +                               s, +                               next, +                               &eventPtr, +                               &version, +                               &encodingName, +                               &newEncoding, +                               &standalone)))          return XML_ERROR_SYNTAX;      if (!isGeneralTextEntity && standalone == 1)          dtd.standalone = 1; @@ -1536,11 +1544,14 @@ handleUnknownEncoding(XML_Parser parser, const XML_Char *encodingName)                  return XML_ERROR_NO_MEMORY;              }              enc = (ns -                   ? XmlInitUnknownEncodingNS -                   : XmlInitUnknownEncoding)(unknownEncodingMem, +                   ? XmlInitUnknownEncodingNS(unknownEncodingMem, +                                             info.map, +                                             info.convert, +                                             info.data) +                   : XmlInitUnknownEncoding(unknownEncodingMem,                                               info.map,                                               info.convert, -                                             info.data); +                                             info.data));              if (enc) {                  unknownEncodingData = info.data;                  unknownEncodingRelease = info.release; diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 51d08e5a..eee104c4 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -611,7 +611,8 @@ void serv_got_update( struct gaim_connection *gc, char *handle, int loggedin, in  			return;  		} -		return; +		/* Why did we have this here.... +		return; */  	}  	oa = u->away != NULL; diff --git a/protocols/oscar/oscar_util.c b/protocols/oscar/oscar_util.c index 1bb27559..0ce06bd9 100644 --- a/protocols/oscar/oscar_util.c +++ b/protocols/oscar/oscar_util.c @@ -108,7 +108,7 @@ static int aim_snlen(const char *sn)  		return 0;  	curPtr = sn; -	while ( (*curPtr) != (char) NULL) { +	while ( (*curPtr) != (char) '\0') {  		if ((*curPtr) != ' ')  		i++;  		curPtr++; @@ -139,7 +139,7 @@ int aim_sncmp(const char *sn1, const char *sn2)  	curPtr1 = sn1;  	curPtr2 = sn2; -	while ( (*curPtr1 != (char) NULL) && (*curPtr2 != (char) NULL) ) { +	while ( (*curPtr1 != (char) '\0') && (*curPtr2 != (char) '\0') ) {  		if ( (*curPtr1 == ' ') || (*curPtr2 == ' ') ) {  			if (*curPtr1 == ' ')  				curPtr1++; diff --git a/protocols/oscar/service.c b/protocols/oscar/service.c index 4519ce14..4596974f 100644 --- a/protocols/oscar/service.c +++ b/protocols/oscar/service.c @@ -880,13 +880,14 @@ int aim_sendmemblock(aim_session_t *sess, aim_conn_t *conn, guint32 offset, guin  			aimbs_put32(&fr->data, 0xa46d3b39);  #endif +/* len can't be 0 here anyway...  		} else if ((offset == 0x00001000) && (len == 0x00000000)) {  			aimbs_put32(&fr->data, 0xd41d8cd9);  			aimbs_put32(&fr->data, 0x8f00b204);  			aimbs_put32(&fr->data, 0xe9800998);  			aimbs_put32(&fr->data, 0xecf8427e); - +*/  		} else  			do_error_dialog(sess->aux_data, "WARNING: unknown hash request", "Gaim"); | 
