Changeset e0e2a71


Ignore:
Timestamp:
2007-06-04T13:36:51Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c570c86
Parents:
d06eabf
Message:

Fixed retarded use of strcpy() and no longer using Jabber fullnames for
nickname generation. IM fullnames and IRC nicknames are just *different*.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    rd06eabf re0e2a71  
    125125                        exit( 0 );
    126126               
    127                 chdir( "/" );
     127//              chdir( "/" );
    128128               
    129129                /* Sometimes std* are already closed (for example when we're in a RESTARTed
  • protocols/jabber/iq.c

    rd06eabf re0e2a71  
    374374                               
    375375                                if( name )
    376                                 {
    377376                                        imcb_rename_buddy( ic, jid, name );
    378                                         imcb_buddy_nick_hint( ic, jid, name );
    379                                 }
    380377                        }
    381378                        else if( strcmp( sub, "remove" ) == 0 )
  • protocols/nogaim.c

    rd06eabf re0e2a71  
    449449        char newnick[MAX_NICK_LENGTH+1];
    450450       
    451         if( !u->online && !nick_saved( ic->acc, handle ) )
     451        if( u && !u->online && !nick_saved( ic->acc, handle ) )
    452452        {
    453453                /* Only do this if the person isn't online yet (which should
     
    455455                   assigned a nickname to this buddy already. */
    456456               
    457                 strcpy( newnick, nick );
     457                strncpy( newnick, nick, MAX_NICK_LENGTH );
     458                newnick[MAX_NICK_LENGTH] = 0;
    458459               
    459460                /* Some processing to make sure this string is a valid IRC nickname. */
Note: See TracChangeset for help on using the changeset viewer.