From 1a1fa63ddae91fd9bb1c18b233aa6ad9b3b65003 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 13 Jan 2025 20:06:31 +0100 Subject: Fixes https://github.com/ntop/nDPI/issues/2672 --- example/reader_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/reader_util.c') 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); -- cgit v1.2.3