From d0f83e0d8d87ec5c386133769015a1d373d45eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 24 Aug 2011 06:57:14 +0000 Subject: Yet another cast. svn path=/trunk/; revision=38703 --- text2pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text2pcap.c') diff --git a/text2pcap.c b/text2pcap.c index c36ce4f766..ad27341cf2 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -1073,7 +1073,7 @@ parse_token (token_t token, char *str) we should find out the largest tail of s1 matches the head of s2, it means the matched part in tail is the ASCII dump of the head byte. These matched should be rollback */ - line_size = curr_offset-(pkt_lnstart-packet_buf); + line_size = curr_offset-(int)(pkt_lnstart-packet_buf); s2 = (char*)malloc((line_size+1)/4+1); /* gather the possible pattern */ for(i=0; i<(line_size+1)/4; i++) { -- cgit v1.2.3