Wireshark-commits: [Wireshark-commits] master-2.6 8d6ab4e: capinfos: fix absolute and relative time
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8d6ab4ebe3130ad7ae2bc7d91db58f295619ca74
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark
Commits:
8d6ab4e 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 928bbf5984ee8b81e960c3d53c1d8d2e1bc2bdbf)
Reviewed-on: https://code.wireshark.org/review/36975
Actions performed:
from 56bef3f Docs+help: Remove "-m".
add 8d6ab4e capinfos: fix absolute and relative time display.
Summary of changes:
capinfos.c | 91 ++++++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 65 insertions(+), 26 deletions(-)