aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-t30.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-10-03 06:39:59 +0000
committerGuy Harris <guy@alum.mit.edu>2011-10-03 06:39:59 +0000
commit7bf74b645c95c1408177a8daf603745ebfc31709 (patch)
treedff71e5cd632486500b8f1768eb4cd855f250f0a /epan/dissectors/packet-t30.c
parent49f715f16941107a73cc76d77cbdb63371ac2556 (diff)
Cast away a warning - if that buffer has more than 2^31-1 characters in
it, we have a real problem. svn path=/trunk/; revision=39239
Diffstat (limited to 'epan/dissectors/packet-t30.c')
-rw-r--r--epan/dissectors/packet-t30.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-t30.c b/epan/dissectors/packet-t30.c
index 4c471a5980..dd6783c832 100644
--- a/epan/dissectors/packet-t30.c
+++ b/epan/dissectors/packet-t30.c
@@ -644,7 +644,7 @@ dissect_t30_partial_page_request(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree_add_uint(tree, hf_t30_partial_page_request_frame_count, tvb, offset, 1, frame_count);
if (buf_top > buf+1) {
buf_top[-2] = '\0';
- proto_tree_add_string_format(tree, hf_t30_partial_page_request_frames, tvb, offset, buf_top-buf, buf, "Frames: %s", buf);
+ proto_tree_add_string_format(tree, hf_t30_partial_page_request_frames, tvb, offset, (gint)(buf_top-buf), buf, "Frames: %s", buf);
}
if (check_col(pinfo->cinfo, COL_INFO))