comparison src/gtkblist.c @ 5341:ccec8893c1be

[gaim-migrate @ 5717] This fixes a memleak from my change last night. Thanks to Matt Pandina for pointing out that I'm dumb :-) Also, I made sec_to_text use g_strdup_printf instead of g_snprintf with a fixed sized buffer. Down with fixed size buffers everywhere! Ra ra ree! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 09 May 2003 14:39:06 +0000
parents 986b2e4dae2d
children 23898d72679c
comparison
equal deleted inserted replaced
5340:986b2e4dae2d 5341:ccec8893c1be
842 } 842 }
843 843
844 if (!statustext && !GAIM_BUDDY_IS_ONLINE(b)) 844 if (!statustext && !GAIM_BUDDY_IS_ONLINE(b))
845 statustext = g_strdup(_("<b>Status:</b> Offline")); 845 statustext = g_strdup(_("<b>Status:</b> Offline"));
846 846
847 if (b->idle > 0) { 847 if (b->idle > 0)
848 time_t t; 848 idletime = sec_to_text(time(NULL) - b->idle);
849 time(&t);
850 idletime = g_strdup(sec_to_text(t-b->idle));
851 }
852 849
853 if(b->alias && b->alias[0]) 850 if(b->alias && b->alias[0])
854 aliastext = g_markup_escape_text(b->alias, -1); 851 aliastext = g_markup_escape_text(b->alias, -1);
855 852
856 if(b->server_alias) 853 if(b->server_alias)