From 8bccfa5b10c4bb67e4378b26b3b3acbc28560c67 Mon Sep 17 00:00:00 2001 From: Campus Date: Tue, 9 Aug 2016 23:00:33 +0200 Subject: fixed invalid termination with ipv6 address --- example/ndpi_util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'example/ndpi_util.c') diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 242f2f27c..405cac366 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -182,6 +182,7 @@ static void patchIPv6Address(char *str) { } else str[j++] = str[i++]; } + if(str[j] != '\0') str[j] = '\0'; } /* ***************************************************** */ -- cgit v1.2.3