diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-04-25 23:23:27 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-04-25 23:23:27 +0000 |
commit | e726b9062d507e9fecfb5f6bbb43dd9c1148175c (patch) | |
tree | cbbd4dac0f55d4aad57e5259b33a2cf61dce88f7 /otime.c | |
parent | misc Windows build system changes (diff) | |
download | openvpn-e726b9062d507e9fecfb5f6bbb43dd9c1148175c.tar.xz |
Fixed 64-bit portability bug in time_string function (Thomas Habets).
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1880 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'otime.c')
-rw-r--r-- | otime.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -130,7 +130,8 @@ time_string (time_t t, int usec, bool show_usec, struct gc_arena *gc) } mutex_lock_static (L_CTIME); - buf_printf (&out, "%s", ctime ((const time_t *)&tv.tv_sec)); + t = tv.tv_sec; + buf_printf (&out, "%s", ctime(&t)); mutex_unlock_static (L_CTIME); buf_rmtail (&out, '\n'); |