summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/shared/dlt_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 9739266..2544446 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -758,7 +758,8 @@ int dlt_message_header_flags(DltMessage *msg,char *text,int textlength,int flags
if ((flags & DLT_HEADER_SHOW_TIME) == DLT_HEADER_SHOW_TIME)
{
/* print received time */
- timeinfo = localtime ((const time_t*)(&(msg->storageheader->seconds)));
+ time_t tt = msg->storageheader->seconds;
+ timeinfo = localtime (&tt);
if (timeinfo!=0)
{