aboutsummaryrefslogtreecommitdiff
path: root/net/wireshark/files/patch-epan_dissectors_packet-its.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireshark/files/patch-epan_dissectors_packet-its.c')
-rw-r--r--net/wireshark/files/patch-epan_dissectors_packet-its.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/wireshark/files/patch-epan_dissectors_packet-its.c b/net/wireshark/files/patch-epan_dissectors_packet-its.c
new file mode 100644
index 000000000000..dbd0e521895b
--- /dev/null
+++ b/net/wireshark/files/patch-epan_dissectors_packet-its.c
@@ -0,0 +1,11 @@
+--- epan/dissectors/packet-its.c.orig 2025-10-14 14:35:47 UTC
++++ epan/dissectors/packet-its.c
+@@ -23047,7 +23047,7 @@ its_timestamp_fmt(char *s, uint64_t v)
+ static void
+ its_timestamp_fmt(char *s, uint64_t v)
+ {
+- time_t secs = v / 1000 + 1072915200 - 5;
++ time_t secs = (time_t) ((time_t)v / 1000 + 1072915200 - 5);
+ struct tm *tm = gmtime(&secs);
+ snprintf(s, ITEM_LABEL_LENGTH, "%u-%02u-%02u %02u:%02u:%02u.%03u (%" PRIu64 ")",
+ tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, (uint32_t)(v % 1000), v