diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-22 02:00:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-22 02:00:27 +0000 |
commit | 5b5f2271cd73724314f49be784c4b56672722b43 (patch) | |
tree | a5aff911ef473bb8dd6d834f97039812ef09d46d /packet-srvloc.c | |
parent | 1f6d7eb0e51f460146f8f4bd9c2c296cf51ff637 (diff) | |
download | wireshark-5b5f2271cd73724314f49be784c4b56672722b43.tar.gz |
"tm_mon" in a "struct tm" is 0-based, not 1-based; when printing the
month number, add 1 to "tm_mon".
svn path=/trunk/; revision=1519
Diffstat (limited to 'packet-srvloc.c')
-rw-r--r-- | packet-srvloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-srvloc.c b/packet-srvloc.c index 62b72a1046..a88bdb3a18 100644 --- a/packet-srvloc.c +++ b/packet-srvloc.c @@ -6,7 +6,7 @@ * In particular I have not had an opportunity to see how it * responds to SRVLOC over TCP. * - * $Id: packet-srvloc.c,v 1.5 2000/01/07 22:05:40 guy Exp $ + * $Id: packet-srvloc.c,v 1.6 2000/01/22 02:00:24 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -157,8 +157,9 @@ dissect_authblk(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) floatsec = stamp->tm_sec + pntohl(&pd[offset + 4]) / 4294967296.0; proto_tree_add_text(tree, offset, 8, "Timestamp: %04d-%02d-%02d %02d:%02d:%07.4f UTC", - stamp->tm_year + 1900, stamp->tm_mon, stamp->tm_mday, - stamp->tm_hour, stamp->tm_min, floatsec); + stamp->tm_year + 1900, stamp->tm_mon + 1, + stamp->tm_mday, stamp->tm_hour, stamp->tm_min, + floatsec); proto_tree_add_text(tree, offset + 8, 2, "Block Structure Desciptor: %u", pntohs(&pd[offset + 8])); length = pntohs(&pd[offset + 10]); |