Changeset 552e641 for protocols


Ignore:
Timestamp:
2007-04-06T05:34:23Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
cd4723c
Parents:
aef4828
Message:

Now that all these functions take format strings, I have to make sure I
use that and don't introduce vulnerabilities. :-)

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    raef4828 r552e641  
    467467        else
    468468        {
    469                 s = g_strdup_printf( "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
    470                 imc_error( ic, s );
    471                 g_free( s );
     469                imc_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
    472470        }
    473471       
  • protocols/msn/ns.c

    raef4828 r552e641  
    671671        if( key == NULL )
    672672        {
    673                 char *err;
    674                
    675                 err = g_strdup_printf( "Error during Passport authentication (%s)",
    676                                        rep->error_string ? rep->error_string : "Unknown error" );
    677                
    678                 imc_error( ic, err );
     673                imc_error( ic, "Error during Passport authentication (%s)",
     674                               rep->error_string ? rep->error_string : "Unknown error" );
    679675                imc_logout( ic );
    680                
    681                 g_free( err );
    682676        }
    683677        else
Note: See TracChangeset for help on using the changeset viewer.