Wireshark-commits: [Wireshark-commits] master-3.2 d863846: capinfos: fix absolute and relative time
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d8638463819bedf221ffcb8a15131efce0faf1b4
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master-3.2
Repository: wireshark
Commits:
d863846 by Guy Harris (guy@xxxxxxxxxxxx):
capinfos: fix absolute and relative time display.
Make the buffers big enough to handle the largest possible time values
you can get with a 64-bit time_t.
Don't cast the seconds value to unsigned long; it's probably signed, and
may not fit in an unsigned long (64-bit on an ILP32 or LLP64 platform),
so cast it to gint64 and print using G_GINT64_MODIFIER followed by "d".
Bug: 16519
Change-Id: I3ab79dfa086d2c4dfb6b93eba8cef3bdce731731
Reviewed-on: https://code.wireshark.org/review/36971
Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
(cherry picked from commit 46868d4831b6c36fc78d54da5c28f0087aee82a4)
Reviewed-on: https://code.wireshark.org/review/36972
Actions performed:
from d5399b7 Qt: Fix export of dissection
add d863846 capinfos: fix absolute and relative time display.
Summary of changes:
capinfos.c | 91 ++++++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 65 insertions(+), 26 deletions(-)