aboutsummaryrefslogtreecommitdiffstats
path: root/packet-srvloc.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-22 02:00:27 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-22 02:00:27 +0000
commitc02828e1a2b58fafe980c879df1b5beb272f41b6 (patch)
treea5aff911ef473bb8dd6d834f97039812ef09d46d /packet-srvloc.c
parent649bc15d5233ee0679162210b92a23676c62aa10 (diff)
"tm_mon" in a "struct tm" is 0-based, not 1-based; when printing the
month number, add 1 to "tm_mon". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1519 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-srvloc.c')
-rw-r--r--packet-srvloc.c7
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]);