aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-07-14 12:25:08 +0200
committerLuca Deri <deri@ntop.org>2019-07-14 12:25:08 +0200
commitf8fb1f838c07994ec2530d5b10b35336b4ffcebd (patch)
tree5e435d3e3e03325b1eef117d24cd17e599a278b0 /src
parent7b16c68e922b268a27376427577d2bf2dcd3b129 (diff)
Fixes #740
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 51ec9ded8..1e066c3ac 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -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);