diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-04-30 02:35:28 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-04-30 02:35:28 +0000 |
commit | 0b9bbbbdb6cf76403a4e9d94a74668429dea89ae (patch) | |
tree | b94c51a362b4d129f4b3800dfba39f4e3ffadb3d /packet-smb-browse.c | |
parent | 5174f6075ed8661fe0ee9a97a7b485b685e2b3e7 (diff) |
Modify tvb_get_nstringz*() to behave more like snprintf(). Make changes
where necessary to reflect the new behavior.
svn path=/trunk/; revision=7607
Diffstat (limited to 'packet-smb-browse.c')
-rw-r--r-- | packet-smb-browse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-smb-browse.c b/packet-smb-browse.c index 5613ebb456..408ff3c5c2 100644 --- a/packet-smb-browse.c +++ b/packet-smb-browse.c @@ -2,7 +2,7 @@ * Routines for SMB Browser packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-smb-browse.c,v 1.29 2003/03/24 16:49:10 sharpe Exp $ + * $Id: packet-smb-browse.c,v 1.30 2003/04/30 02:35:19 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -626,7 +626,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr offset += 4; /* server name */ - tvb_get_nstringz0(tvb, offset, 16, host_name); + tvb_get_nstringz0(tvb, offset, sizeof(host_name), host_name); if (check_col(pinfo->cinfo, COL_INFO)) { col_append_fstr(pinfo->cinfo, COL_INFO, " %s", host_name); } |