comparison src/protocols/msn/msn.c @ 3020:c3a29bd2a2d7

[gaim-migrate @ 3033] Fixes a segfault in Yahoo, and a disconnection error in MSN. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 07 Mar 2002 18:53:37 +0000
parents 63628fddf121
children 1143524a2eaf
comparison
equal deleted inserted replaced
3019:304e8c376472 3020:c3a29bd2a2d7
1811 { 1811 {
1812 struct gaim_connection *gc = data; 1812 struct gaim_connection *gc = data;
1813 struct msn_data *md = gc->proto_data; 1813 struct msn_data *md = gc->proto_data;
1814 char buf[MSN_BUF_LEN]; 1814 char buf[MSN_BUF_LEN];
1815 1815
1816 if (strlen(url_encode(entry)) > 387) {
1817 do_error_dialog("Friendly name too long.", "MSN Error");
1818 return;
1819 }
1820
1816 g_snprintf(buf, sizeof(buf), "REA %d %s %s\r\n", ++md->trId, gc->username, url_encode(entry)); 1821 g_snprintf(buf, sizeof(buf), "REA %d %s %s\r\n", ++md->trId, gc->username, url_encode(entry));
1817 if (msn_write(md->fd, buf, strlen(buf)) < 0) { 1822 if (msn_write(md->fd, buf, strlen(buf)) < 0) {
1818 hide_login_progress(gc, "Write error"); 1823 hide_login_progress(gc, "Write error");
1819 signoff(gc); 1824 signoff(gc);
1820 return; 1825 return;