Mercurial > pidgin
changeset 25199:fcd9b7c5ce05
Oops, unleak...
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 16 Nov 2008 22:45:11 +0000 |
parents | e9b7e41dc816 |
children | bb996cc49073 |
files | libpurple/protocols/jabber/presence.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Sun Nov 16 22:29:00 2008 +0000 +++ b/libpurple/protocols/jabber/presence.c Sun Nov 16 22:45:11 2008 +0000 @@ -264,7 +264,8 @@ /* if we are idle and not offline, include idle */ if (js->idle && state != JABBER_BUDDY_STATE_UNAVAILABLE) { xmlnode *query = xmlnode_new_child(presence, "query"); - gchar *seconds = g_strdup_printf("%d", (int) (time(NULL) - js->idle)); + gchar seconds[10]; + g_sprintf(seconds, "%d", (int) (time(NULL) - js->idle)); xmlnode_set_namespace(query, "jabber:iq:last"); xmlnode_set_attrib(query, "seconds", seconds);