From 115a119cd908e45bdcae6b0c6801f193dcfaf901 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 16 Nov 2011 17:12:47 +0000 Subject: [PATCH] Fix build on Windows. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39884 f5534014-38df-0310-8fa8-9805f1628bb7 --- 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,", -- 2.34.1