diff options
author | Campus <campus@ntop.org> | 2016-08-09 23:00:33 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2016-08-09 23:00:33 +0200 |
commit | 8bccfa5b10c4bb67e4378b26b3b3acbc28560c67 (patch) | |
tree | caf35c2fc43adaa8243aa4497975416560d22740 /example/ndpi_util.c | |
parent | 5e1e6a48a4211d1a7a92fb06a193dc7c368e9118 (diff) |
fixed invalid termination with ipv6 address
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
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'; } /* ***************************************************** */ |