Skip to content

Commit

Permalink
Fixes ntop#740
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Jul 14, 2019
1 parent 7b16c68 commit f8fb1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_

flow->http.url = ndpi_malloc(len);
if(flow->http.url) {
strncpy(flow->http.url, "http://", 7);
strcpy(flow->http.url, "http://");
strncpy(&flow->http.url[7], (char*)packet->host_line.ptr, packet->host_line.len);
strncpy(&flow->http.url[7+packet->host_line.len], (char*)packet->http_url_name.ptr,
packet->http_url_name.len);
Expand Down

0 comments on commit f8fb1f8

Please sign in to comment.