Mercurial > pidgin
diff src/buddy.c @ 26:b9e90a914e20
[gaim-migrate @ 35]
Peter Teichman sent me another huge list of patches. Here they are :)
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Fri, 24 Mar 2000 19:17:34 +0000 |
| parents | 99d91a6c2fbf |
| children | aa738bb8d8d7 |
line wrap: on
line diff
--- a/src/buddy.c Fri Mar 24 08:55:32 2000 +0000 +++ b/src/buddy.c Fri Mar 24 19:17:34 2000 +0000 @@ -1131,18 +1131,19 @@ void do_pounce(char *name) { - char *who = g_malloc(64); - char *buf = g_malloc(BUF_LONG); + char *who; struct buddy_pounce *b; struct conversation *c; GList *bp = buddy_pounces; - strcpy(who, normalize(name)); + who = g_strdup(normalize(name)); while(bp) { b = (struct buddy_pounce *)bp->data;; + bp = bp->next; /* increment the list here because rem_bp can make our handle bad */ + if (!strcasecmp(who, normalize(b->name))) { if (b->popup == 1) { @@ -1166,10 +1167,8 @@ rem_bp(NULL, b); } - bp = bp->next; } g_free(who); - g_free(buf); } static void new_bp_callback(GtkWidget *w, char *name) @@ -1300,7 +1299,6 @@ void set_buddy(struct buddy *b) { - char *who; char infotip[256]; char idlet[16]; char warn[256]; @@ -1359,10 +1357,6 @@ play_sound(BUDDY_ARRIVE); - who = g_malloc(sizeof(b->name) + 10); - strcpy(who, b->name); - - g_free(who); pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, (gchar **)login_icon_xpm); gtk_widget_hide(b->pix);
