Changeset cd4723c for protocols/yahoo


Ignore:
Timestamp:
2007-04-15T21:59:52Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c2fb3809
Parents:
552e641
Message:

More format string problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r552e641 rcd4723c  
    518518        {
    519519                char *errstr;
    520                 char *s;
    521520               
    522521                yd->logged_in = FALSE;
     
    539538               
    540539                if( url && *url )
    541                 {
    542                         s = g_malloc( strlen( "Error %d (%s). See %s for more information." ) + strlen( url ) + strlen( errstr ) + 16 );
    543                         sprintf( s, "Error %d (%s). See %s for more information.", succ, errstr, url );
    544                 }
     540                        imc_error( ic, "Error %d (%s). See %s for more information.", succ, errstr, url );
    545541                else
    546                 {
    547                         s = g_malloc( strlen( "Error %d (%s)" ) + strlen( errstr ) + 16 );
    548                         sprintf( s, "Error %d (%s)", succ, errstr );
    549                 }
    550                
    551                 if( yd->logged_in )
    552                         imc_error( ic, s );
    553                 else
    554                         imc_error( ic, s );
    555                
    556                 g_free( s );
     542                        imc_error( ic, "Error %d (%s)", succ, errstr );
    557543               
    558544                imc_logout( ic );
Note: See TracChangeset for help on using the changeset viewer.