comparison src/protocols/oscar/oscar.c @ 4734:ece4045eebff

[gaim-migrate @ 5049] memoryclobberinfixen committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 13 Mar 2003 06:39:40 +0000
parents c15e0699acae
children 34fdf9e313d5
comparison
equal deleted inserted replaced
4733:76ccf9740183 4734:ece4045eebff
547 gc->password[8] = 0; 547 gc->password[8] = 0;
548 } else { 548 } else {
549 gc->flags |= OPT_CONN_HTML; 549 gc->flags |= OPT_CONN_HTML;
550 gc->flags |= OPT_CONN_AUTO_RESP; 550 gc->flags |= OPT_CONN_AUTO_RESP;
551 } 551 }
552 od->supports_tn = g_hash_table_new(g_str_hash, g_str_equal); 552 od->supports_tn = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
553 od->buddy_caps = g_hash_table_new(g_str_hash, g_str_equal); 553 od->buddy_caps = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
554 554
555 sess = g_new0(aim_session_t, 1); 555 sess = g_new0(aim_session_t, 1);
556 556
557 aim_session_init(sess, AIM_SESS_FLAGS_NONBLOCKCONNECT, 0); 557 aim_session_init(sess, AIM_SESS_FLAGS_NONBLOCKCONNECT, 0);
558 aim_setdebuggingcb(sess, oscar_debug); 558 aim_setdebuggingcb(sess, oscar_debug);
1630 signon = time(NULL) - info->sessionlen; 1630 signon = time(NULL) - info->sessionlen;
1631 1631
1632 if (!aim_sncmp(gc->username, info->sn)) 1632 if (!aim_sncmp(gc->username, info->sn))
1633 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn); 1633 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn);
1634 1634
1635 g_hash_table_replace(od->buddy_caps, normalize(info->sn), 1635 g_hash_table_replace(od->buddy_caps, g_strdup(normalize(info->sn)),
1636 GINT_TO_POINTER(caps)); 1636 GINT_TO_POINTER(caps));
1637 1637
1638 serv_got_update(gc, info->sn, 1, info->warnlevel/10, signon, 1638 serv_got_update(gc, info->sn, 1, info->warnlevel/10, signon,
1639 time_idle, type); 1639 time_idle, type);
1640 1640
2031 tmp = strdup(_("(There was an error receiving this message)")); 2031 tmp = strdup(_("(There was an error receiving this message)"));
2032 } 2032 }
2033 } 2033 }
2034 2034
2035 if (args->icbmflags & AIM_IMFLAGS_TYPINGNOT) { 2035 if (args->icbmflags & AIM_IMFLAGS_TYPINGNOT) {
2036 char *who = normalize(userinfo->sn); 2036 char *who = g_strdup(normalize(userinfo->sn));
2037 if (!g_hash_table_lookup(od->supports_tn, who)) 2037 if (!g_hash_table_lookup(od->supports_tn, who))
2038 g_hash_table_insert(od->supports_tn, who, (gpointer)1); 2038 g_hash_table_insert(od->supports_tn, who, (gpointer)1);
2039 } 2039 }
2040 2040
2041 /* strip_linefeed(tmp); */ 2041 /* strip_linefeed(tmp); */