aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2025-01-13 20:06:31 +0100
committerLuca Deri <deri@ntop.org>2025-01-13 20:06:31 +0100
commit1a1fa63ddae91fd9bb1c18b233aa6ad9b3b65003 (patch)
treee5ec0f31af5e437db1eb0bf9011ce5571491649f
parent8f76b91f6f731e83af439c74a7c99dfcc508fd34 (diff)
Fixes https://github.com/ntop/nDPI/issues/2672
-rw-r--r--example/reader_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 193723e06..d03a376c2 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1371,7 +1371,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
flow->info_type = INFO_GENERIC;
flow->info[0] = 0;
if (flow->ndpi_flow->protos.slp.url_count > 0)
- strncat(flow->info, "URL(s): ", sizeof(flow->info));
+ strncat(flow->info, "URL(s): ", sizeof(flow->info)-1);
for (i = 0; i < flow->ndpi_flow->protos.slp.url_count; ++i) {
size_t length = strlen(flow->info);