summaryrefslogtreecommitdiff
path: root/text2pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index a2c39e4d45..c36ce4f766 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -205,7 +205,7 @@ static char *ts_fmt = NULL;
static struct tm timecode_default;
static char new_date_fmt = 0;
-static char* pkt_lnstart;
+static unsigned char* pkt_lnstart;
/* Input file */
static const char *input_filename;
@@ -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-((int)pkt_lnstart-(int)packet_buf);
+ line_size = curr_offset-(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++) {