20 lines
735 B
Plaintext
20 lines
735 B
Plaintext
$OpenBSD: patch-protocols_msn_msn_util_c,v 1.2 2006/04/11 15:11:33 naddy Exp $
|
|
--- protocols/msn/msn_util.c.orig Sun Apr 2 04:53:39 2006
|
|
+++ protocols/msn/msn_util.c Thu Apr 6 23:39:32 2006
|
|
@@ -69,9 +69,12 @@ int msn_buddy_list_add( struct gaim_conn
|
|
if( g_strcasecmp( l->data, who ) == 0 )
|
|
return( 1 );
|
|
|
|
- realname = g_new0( char, strlen( realname_ ) * 3 + 1 );
|
|
- strcpy( realname, realname_ );
|
|
- http_encode( realname );
|
|
+ {
|
|
+ size_t len = strlen( realname_ ) * 3 + 1;
|
|
+ realname = g_new0( char, len );
|
|
+ strlcpy( realname, realname_, len );
|
|
+ http_encode( realname, len );
|
|
+ }
|
|
|
|
g_snprintf( buf, sizeof( buf ), "ADD %d %s %s %s\r\n", ++md->trId, list, who, realname );
|
|
if( msn_write( gc, buf, strlen( buf ) ) )
|