libpurple/protocols/irc/msgs.c

branch
sadrul.struct.hiding
changeset 24571
77c103347d66
parent 24398
4865c2ee6ea8
parent 24416
45b9d07c46f6
child 24944
30c406915cad
--- a/libpurple/protocols/irc/msgs.c	Sat Oct 04 21:46:10 2008 +0000
+++ b/libpurple/protocols/irc/msgs.c	Fri Oct 31 07:59:46 2008 +0000
@@ -218,8 +218,10 @@
 			/* This is an extended syntax, not in RFC 1459 */
 			int t1 = atoi(args[4]);
 			time_t t2 = time(NULL);
+			char *time = purple_str_seconds_to_string(t2 - t1);
 			msg = g_strdup_printf(_("Ban on %s by %s, set %s ago"),
-			                      args[2], args[3], purple_str_seconds_to_string(t2 - t1));
+			                      args[2], args[3], time);
+			g_free(time);
 		} else {
 			msg = g_strdup_printf(_("Ban on %s"), args[2]);
 		}

mercurial