aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-22 02:00:27 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-22 02:00:27 +0000
commit5b5f2271cd73724314f49be784c4b56672722b43 (patch)
treea5aff911ef473bb8dd6d834f97039812ef09d46d /packet-smb.c
parent1f6d7eb0e51f460146f8f4bd9c2c296cf51ff637 (diff)
"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-smb.c')
-rw-r--r--packet-smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-smb.c b/packet-smb.c
index 6492d4b47a..8d821a4b69 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -2,7 +2,7 @@
* Routines for smb packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb.c,v 1.59 2000/01/07 22:05:36 guy Exp $
+ * $Id: packet-smb.c,v 1.60 2000/01/22 02:00:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -476,7 +476,7 @@ dissect_smbu_date(guint16 date, guint16 time)
_gtime = gmtime(&ltime);
sprintf(datebuf, "%04d-%02d-%02d",
- 1900 + (_gtime -> tm_year), _gtime -> tm_mon, _gtime -> tm_mday);
+ 1900 + (_gtime -> tm_year), 1 + (_gtime -> tm_mon), _gtime -> tm_mday);
return datebuf;