diff options
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'; } /* ***************************************************** */ |