diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-05 10:55:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-05 10:55:00 +0000 |
commit | cf347c9f8b61f747a6f6150074d1bdf52b103ff8 (patch) | |
tree | 3d95eb8844cced0fc36957f8eb1232da975a96a0 /epan/dissectors/packet-sebek.c | |
parent | 77762e2ddc82c2236ffd2f4dad9abeebbaa79327 (diff) |
Use tvb_format_text() with %s format items, to handle non-printable
characters.
Clean up indentation.
svn path=/trunk/; revision=12964
Diffstat (limited to 'epan/dissectors/packet-sebek.c')
-rw-r--r-- | epan/dissectors/packet-sebek.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-sebek.c b/epan/dissectors/packet-sebek.c index 1f3e7a0fe1..959e03c7fd 100644 --- a/epan/dissectors/packet-sebek.c +++ b/epan/dissectors/packet-sebek.c @@ -105,7 +105,7 @@ dissect_sebek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_append_fstr(pinfo->cinfo, COL_INFO, " pid(%d)", tvb_get_ntohl(tvb, 20)); col_append_fstr(pinfo->cinfo, COL_INFO, " uid(%d)", tvb_get_ntohl(tvb, 24)); col_append_fstr(pinfo->cinfo, COL_INFO, " fd(%d)", tvb_get_ntohl(tvb, 28)); - col_append_fstr(pinfo->cinfo, COL_INFO, " cmd: %s", tvb_get_string(tvb, 32, 12)); + col_append_fstr(pinfo->cinfo, COL_INFO, " cmd: %s", tvb_format_text(tvb, 32, 12)); } @@ -126,10 +126,10 @@ dissect_sebek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(sebek_tree, hf_sebek_counter, tvb, offset, 4, FALSE); offset += 4; - ts.secs = tvb_get_ntohl(tvb, offset); - ts.nsecs = tvb_get_ntohl(tvb, offset+4); - proto_tree_add_time(sebek_tree, hf_sebek_time, tvb, offset, 8, &ts); - offset += 8; + ts.secs = tvb_get_ntohl(tvb, offset); + ts.nsecs = tvb_get_ntohl(tvb, offset+4); + proto_tree_add_time(sebek_tree, hf_sebek_time, tvb, offset, 8, &ts); + offset += 8; proto_tree_add_item(sebek_tree, hf_sebek_pid, tvb, offset, 4, FALSE); offset += 4; |