| 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)); |