diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-28 07:06:39 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-28 07:06:39 +0000 |
commit | 9c1c47d8a1826919c80150170c28e2a7a2f0b9dd (patch) | |
tree | 54f5b092d39996c74a7ddc7acb7feb6ae3834454 /epan/dissectors/packet-bittorrent.c | |
parent | 1421dc10a87498423d3e008e73089cb7282e82a6 (diff) |
Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21244 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r-- | epan/dissectors/packet-bittorrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index a299a0792f..f4d67158e9 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -710,8 +710,8 @@ static void dissect_bittorrent_welcome (tvbuff_t *tvb, packet_info *pinfo _U_, p /* The version number is 4 numeric characters for the client ids beginning with '-' and 3 characters for the rest. */ - version = tvb_get_string(tvb, offset + strlen(peer_id[i].id), - (guint8*)(peer_id[i].id[0] == '-') ? 4 : 3); + version = (char*)tvb_get_string(tvb, offset + strlen(peer_id[i].id), + (peer_id[i].id[0] == '-') ? 4 : 3); proto_tree_add_text(tree, tvb, offset, 20, "Client is %s v%s", peer_id[i].name, format_text((guchar*)version, (peer_id[i].id[0] == '-') ? 4 : 3)); |