diff options
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/k12text.l | 4 |
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,", |