diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 14:59:52 -0700 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 14:59:52 -0700 | 
| commit | cd4723c257f9f7bd8d4a46c6562f93c2aefc3dbb (patch) | |
| tree | 409bbd6422dff0c22257e6106220ab42969c9a97 /protocols/yahoo/yahoo.c | |
| parent | 552e641194147078c7858059df9916d5d548b7a1 (diff) | |
More format string problems.
Diffstat (limited to 'protocols/yahoo/yahoo.c')
| -rw-r--r-- | protocols/yahoo/yahoo.c | 18 | 
1 files changed, 2 insertions, 16 deletions
| diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c index 424a0ad1..c10c3103 100644 --- a/protocols/yahoo/yahoo.c +++ b/protocols/yahoo/yahoo.c @@ -517,7 +517,6 @@ void ext_yahoo_login_response( int id, int succ, char *url )  	else  	{  		char *errstr; -		char *s;  		yd->logged_in = FALSE; @@ -538,22 +537,9 @@ void ext_yahoo_login_response( int id, int succ, char *url )  			errstr = "Unknown error";  		if( url && *url ) -		{ -			s = g_malloc( strlen( "Error %d (%s). See %s for more information." ) + strlen( url ) + strlen( errstr ) + 16 ); -			sprintf( s, "Error %d (%s). See %s for more information.", succ, errstr, url ); -		} +			imc_error( ic, "Error %d (%s). See %s for more information.", succ, errstr, url );  		else -		{ -			s = g_malloc( strlen( "Error %d (%s)" ) + strlen( errstr ) + 16 ); -			sprintf( s, "Error %d (%s)", succ, errstr ); -		} -		 -		if( yd->logged_in ) -			imc_error( ic, s ); -		else -			imc_error( ic, s ); -		 -		g_free( s ); +			imc_error( ic, "Error %d (%s)", succ, errstr );  		imc_logout( ic );  	} | 
