src/protocols/msn/msn.c

changeset 3136
8d988a6d2f4c
parent 3121
ac411718fcd5
child 3170
8b7605f271be
equal deleted inserted replaced
3135:651537e438ca 3136:8d988a6d2f4c
1882 { 1882 {
1883 struct gaim_connection *gc = data; 1883 struct gaim_connection *gc = data;
1884 struct msn_data *md = gc->proto_data; 1884 struct msn_data *md = gc->proto_data;
1885 char buf[MSN_BUF_LEN]; 1885 char buf[MSN_BUF_LEN];
1886 1886
1887 if (strlen(url_encode(entry)) > 387) { 1887 if (strlen(url_encode(entry)) >= BUDDY_ALIAS_MAXLEN) {
1888 do_error_dialog("Friendly name too long.", "MSN Error"); 1888 do_error_dialog("Friendly name too long.", "MSN Error");
1889 return; 1889 return;
1890 } 1890 }
1891 1891
1892 g_snprintf(buf, sizeof(buf), "REA %d %s %s\r\n", ++md->trId, gc->username, url_encode(entry)); 1892 g_snprintf(buf, sizeof(buf), "REA %d %s %s\r\n", ++md->trId, gc->username, url_encode(entry));

mercurial