Update of /cvsroot/simplemail/simplemail/gtk
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1110/gtk
Modified Files:
support.c
Log Message:
Improved sm_convert_seconds().
Index: support.c
===================================================================
RCS file: /cvsroot/simplemail/simplemail/gtk/support.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- support.c 24 Dec 2013 08:52:07 -0000 1.15
+++ support.c 24 Dec 2013 09:31:38 -0000 1.16
@@ -228,7 +228,8 @@
*******************************************************************/
void sm_convert_seconds(unsigned int seconds, struct tm *tm)
{
- memset(tm,0,sizeof(*tm));
+ time_t t = seconds;
+ localtime_r(&t, tm);
}
/******************************************************************
|