From 7bf74b645c95c1408177a8daf603745ebfc31709 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 3 Oct 2011 06:39:59 +0000 Subject: 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 --- epan/dissectors/packet-t30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-t30.c') 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)) -- cgit v1.2.3