diff src/protocols/irc/msgs.c @ 6350:34c07f5f34a0

[gaim-migrate @ 6849] -Compile warning fixes from The Man (Paco-Paco) -2 memleak fixes from me. One of them leaked the size of a chat message when either sending or receiving, I forgot which (my bad!) -Hopefully make AIM correctly refetch your buddy list when AOL doesn't send it to you the first time -Maybe something else -Chocolate -Vanilla -Strawberry -Napoleon committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 31 Jul 2003 23:21:36 +0000
parents e06e04e44914
children ffb1b5003772
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Thu Jul 31 23:08:54 2003 +0000
+++ b/src/protocols/irc/msgs.c	Thu Jul 31 23:21:36 2003 +0000
@@ -461,6 +461,8 @@
 		ib->flag = TRUE;
 	}
 
+	g_strfreev(nicks);
+
 	g_hash_table_foreach(irc->buddies, (GHFunc)irc_buddy_status, (gpointer)irc);
 }
 
@@ -690,7 +692,7 @@
 	if (sscanf(parts[1], "%lu", &oldstamp) != 1) {
 		msg = g_strdup(_("Error: invalid PONG from server"));
 	} else {
-		msg = g_strdup_printf(_("PING reply -- Lag: %d seconds"), time(NULL) - oldstamp);
+		msg = g_strdup_printf(_("PING reply -- Lag: %lu seconds"), time(NULL) - oldstamp);
 	}
 
 	convo = gaim_find_conversation_with_account(parts[0], irc->account);