diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 06:57:14 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 06:57:14 +0000 |
commit | d0f83e0d8d87ec5c386133769015a1d373d45eb7 (patch) | |
tree | 1912e8caa573964691addf26af1ddc31f5191739 /text2pcap.c | |
parent | cf114c1124b3aa4dccc4e618820a14dd881637c8 (diff) |
Yet another cast.
svn path=/trunk/; revision=38703
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |