summaryrefslogtreecommitdiff
path: root/wiretap/k12text.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-11-16 17:12:47 +0000
committerGuy Harris <guy@alum.mit.edu>2011-11-16 17:12:47 +0000
commit8be474f7764b70c90e6d0ad77d48999206c1f0f5 (patch)
treed63c8b00277086ee3749661b0dd7cae251fa1dcc /wiretap/k12text.l
parent163edbb5078de3b8cbaa3cce492709030a32e803 (diff)
downloadwireshark-8be474f7764b70c90e6d0ad77d48999206c1f0f5.tar.gz
Fix build on Windows.
svn path=/trunk/; revision=39884
Diffstat (limited to 'wiretap/k12text.l')
-rw-r--r--wiretap/k12text.l4
1 files 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,",