aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-20 22:26:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-20 22:26:14 +0000
commiteee7f58e2d51f8e6befd325ebe51f062e33c51f3 (patch)
treefaa14c9e53db5a7565157ae8d8e38b59fb007939
parent724c494b70a4d681b06c10bf2d80b90efd2f1869 (diff)
Fix up a cast so that it properly sign-extends the server time zone;
from Joerg Mayer. svn path=/trunk/; revision=3427
-rw-r--r--packet-smb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smb.c b/packet-smb.c
index 9209645f6e..07c69c78d7 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.81 2001/03/20 04:46:37 guy Exp $
+ * $Id: packet-smb.c,v 1.82 2001/05/20 22:26:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -3240,7 +3240,7 @@ dissect_negprot_smb(const u_char *pd, int offset, frame_data *fd, proto_tree *pa
if (tree) {
proto_tree_add_text(tree, NullTVB, offset, 2, "Server time zone: %i min from UTC",
- (signed)GSSHORT(pd, offset));
+ (signed short)GSSHORT(pd, offset));
}
@@ -3461,7 +3461,7 @@ dissect_negprot_smb(const u_char *pd, int offset, frame_data *fd, proto_tree *pa
if (tree) {
proto_tree_add_text(tree, NullTVB, offset, 2, "Server time zone: %i min from UTC",
- (signed)GSSHORT(pd, offset));
+ (signed short)GSSHORT(pd, offset));
}