diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-07-09 21:27:08 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-07-09 21:27:08 +0000 |
commit | 75ffa6bb712971c34b872de9112aee6aa6482c05 (patch) | |
tree | 03dae245459bad7befc0ffaad1a0542458ac6273 /plugins/unistim/network.h | |
parent | b4a82269065fe59ee91d5534345b6f11a87ce462 (diff) | |
download | wireshark-75ffa6bb712971c34b872de9112aee6aa6482c05.tar.gz |
The only reason to escape "%" in a string is if you are, incorrectly,
passing a string directly to a routine that expects a format string.
The correct way to handle that is to pass "%s" as the string.
As long as you're escaping non-printable characters, just let
tvb_format_string() handle that.
For null-terminated strings, get the length of the string with
tvb_strsize(), and then just put the string into the protocol tree as a
regular item.
svn path=/trunk/; revision=33482
Diffstat (limited to 'plugins/unistim/network.h')
-rw-r--r-- | plugins/unistim/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/unistim/network.h b/plugins/unistim/network.h index bbfe343038..b481fbfc72 100644 --- a/plugins/unistim/network.h +++ b/plugins/unistim/network.h @@ -68,6 +68,8 @@ static int hf_net_use_local_port=-1; static int hf_net_file_server_port=-1; static int hf_net_local_port=-1; static int hf_net_file_server_address=-1; +static int hf_net_full_pathname=-1; +static int hf_net_file_identifier=-1; static const value_string file_xfer_modes[]={ {0x00,"TFTP"}, |