diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-03-10 22:04:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-03-10 22:04:25 +0000 |
commit | ce5c18736df97f481c9140ed6bfb43ceb9b6c08e (patch) | |
tree | 1ecf79c352fa15d7f9c56bfcd5283bfa1dfae7bd /packet-dcerpc-samr.c | |
parent | bf1c8de9976b1dcc2b21ae5b02daa4fe44aed31c (diff) | |
download | wireshark-ce5c18736df97f481c9140ed6bfb43ceb9b6c08e.tar.gz wireshark-ce5c18736df97f481c9140ed6bfb43ceb9b6c08e.tar.bz2 wireshark-ce5c18736df97f481c9140ed6bfb43ceb9b6c08e.zip |
Don't use "proto_tree_add_string_format()" when
"proto_tree_add_string()" will suffice.
svn path=/trunk/; revision=4913
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r-- | packet-dcerpc-samr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c index fcc56adcfd..a82c2ffd84 100644 --- a/packet-dcerpc-samr.c +++ b/packet-dcerpc-samr.c @@ -3,7 +3,7 @@ * Copyright 2001, Tim Potter <tpot@samba.org> * 2002 Added all command dissectors Ronnie Sahlberg * - * $Id: packet-dcerpc-samr.c,v 1.19 2002/03/10 21:30:11 guy Exp $ + * $Id: packet-dcerpc-samr.c,v 1.20 2002/03/10 22:04:25 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -227,9 +227,8 @@ dissect_ndr_nt_STRING_string (tvbuff_t *tvb, int offset, offset = prs_uint8s(tvb, offset, pinfo, tree, max_len, &text, NULL); name = proto_registrar_get_name(di->hf_index); - proto_tree_add_string_format(tree, di->hf_index, - tvb, old_offset, offset-old_offset, - text, "%s: %s", name, text); + proto_tree_add_string(tree, di->hf_index, tvb, old_offset, + offset-old_offset, text); if(tree){ proto_item_set_text(tree, "%s: %s", name, text); |