aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/irc.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2015-11-30 14:38:16 +0100
committerLuca Deri <deri@ntop.org>2015-11-30 14:38:16 +0100
commit6f3d5a7b33fdb1bd016c7ac32e09711c5c076b51 (patch)
treee155e64f318afa3b9e82f1c7a70efed87dd877a1 /src/lib/protocols/irc.c
parent34491f4be16733b7d9a596fbcbf84beaf986bc2e (diff)
Win fixes
Diffstat (limited to 'src/lib/protocols/irc.c')
-rw-r--r--src/lib/protocols/irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/irc.c b/src/lib/protocols/irc.c
index 57c9f52bc..e63e7a7b2 100644
--- a/src/lib/protocols/irc.c
+++ b/src/lib/protocols/irc.c
@@ -585,7 +585,7 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
if (memcmp(packet->payload, "POST ", 5) == 0) {
ndpi_parse_packet_line_info(ndpi_struct, flow);
if (packet->parsed_lines) {
- u_int16_t http_header_len = (packet->line[packet->parsed_lines - 1].ptr - packet->payload) + 2;
+ u_int16_t http_header_len = (u_int16_t)((packet->line[packet->parsed_lines - 1].ptr - packet->payload) + 2);
if (packet->payload_packet_len > http_header_len) {
http_content_ptr_len = packet->payload_packet_len - http_header_len;
}