diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-05 22:34:23 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-05 22:34:23 -0700 |
commit | 552e641194147078c7858059df9916d5d548b7a1 (patch) | |
tree | a085ab8181998c3efc0b2c9c7a2b651372aa7503 | |
parent | aef4828a1dc51de10a43bb7dd5d023de9971295b (diff) |
Now that all these functions take format strings, I have to make sure I
use that and don't introduce vulnerabilities. :-)
-rw-r--r-- | protocols/jabber/io.c | 4 | ||||
-rw-r--r-- | protocols/msn/ns.c | 10 |
2 files changed, 3 insertions, 11 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index 699c7019..bf52fb4e 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -466,9 +466,7 @@ static xt_status jabber_pkt_stream_error( struct xt_node *node, gpointer data ) } else { - s = g_strdup_printf( "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" ); - imc_error( ic, s ); - g_free( s ); + imc_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" ); } imc_logout( ic ); diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index e4530b8f..81ad1941 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -670,15 +670,9 @@ static void msn_auth_got_passport_id( struct passport_reply *rep ) if( key == NULL ) { - char *err; - - err = g_strdup_printf( "Error during Passport authentication (%s)", - rep->error_string ? rep->error_string : "Unknown error" ); - - imc_error( ic, err ); + imc_error( ic, "Error during Passport authentication (%s)", + rep->error_string ? rep->error_string : "Unknown error" ); imc_logout( ic ); - - g_free( err ); } else { |