Changeset 54794b8 for protocols/msn/msn.c
- Timestamp:
- 2006-08-25T12:34:36Z (18 years ago)
- Branches:
- master
- Children:
- 695e392
- Parents:
- a36b030
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
ra36b030 r54794b8 212 212 static void msn_set_info( struct gaim_connection *gc, char *info ) 213 213 { 214 int i; 215 char buf[1024], *fn, *s; 214 char buf[1024], *fn; 216 215 struct msn_data *md = gc->proto_data; 217 216 … … 222 221 } 223 222 224 /* Of course we could use http_encode() here, but when we encode 225 every character, the server is less likely to complain about the 226 chosen name. However, the MSN server doesn't seem to like escaped 227 non-ASCII chars, so we keep those unescaped. */ 228 s = fn = g_new0( char, strlen( info ) * 3 + 1 ); 229 for( i = 0; info[i]; i ++ ) 230 if( info[i] & 128 ) 231 { 232 *s = info[i]; 233 s ++; 234 } 235 else 236 { 237 g_snprintf( s, 4, "%%%02X", info[i] ); 238 s += 3; 239 } 223 fn = msn_http_encode( info ); 240 224 241 225 g_snprintf( buf, sizeof( buf ), "REA %d %s %s\r\n", ++md->trId, gc->username, fn );
Note: See TracChangeset
for help on using the changeset viewer.