From 8be474f7764b70c90e6d0ad77d48999206c1f0f5 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 16 Nov 2011 17:12:47 +0000 Subject: Fix build on Windows. svn path=/trunk/; revision=39884 --- wiretap/k12text.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiretap/k12text.l b/wiretap/k12text.l index 914137394c..64a693cd69 100644 --- a/wiretap/k12text.l +++ b/wiretap/k12text.l @@ -371,8 +371,8 @@ k12text_dump(wtap_dumper *wdh _U_, const struct wtap_pkthdr *phdr, /* calling gmtime() on MSVC 2005 with huge values causes it to crash */ /* XXX - find the exact value that still does work */ /* XXX - using _USE_32BIT_TIME_T might be another way to circumvent this problem */ - if (phdr.ts_secs > 2000000000) - strftime(p, 90, "+---------+---------------+----------+\r\nXX:XX:XX,"); + if (phdr->ts_secs > 2000000000) + g_snprintf(p, 90, "+---------+---------------+----------+\r\nXX:XX:XX,"); else #endif strftime(p, 90, "+---------+---------------+----------+\r\n%H:%M:%S,", -- cgit v1.2.1