diff options
author | Guy Harris <gharris@sonic.net> | 2020-10-18 01:27:01 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-10-18 02:06:07 -0700 |
commit | a58ed646aa3c1bbb5a8bd17721c85959744df7de (patch) | |
tree | 9cd0aa82b843b53c4c3cc5a72b676e8a6e70b37f /epan/to_str.h | |
parent | cfa55d6a462106227ab66eb32b0013f0e111cce8 (diff) |
Handle relative times with >2^31 seconds.
Make display_signed_time() take a 64-bit signed number of seconds, and,
in calls to it, cast the argument to gint64, not gint32.
Addresses issue #16909.
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index 23b796f020..08e0203661 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -94,7 +94,7 @@ WS_DLL_PUBLIC gchar* abs_time_secs_to_str(wmem_allocator_t *scope, const time_t, gboolean show_zone); WS_DLL_PUBLIC void display_epoch_time(gchar *, int, const time_t, gint32, const to_str_time_res_t); -WS_DLL_PUBLIC void display_signed_time(gchar *, int, const gint32, gint32, const to_str_time_res_t); +WS_DLL_PUBLIC void display_signed_time(gchar *, int, const gint64, gint32, const to_str_time_res_t); WS_DLL_PUBLIC gchar* signed_time_secs_to_str(wmem_allocator_t *scope, const gint32 time_val); WS_DLL_PUBLIC gchar* unsigned_time_secs_to_str(wmem_allocator_t *scope, const guint32); |