diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-07-22 09:02:12 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-07-22 09:02:12 +0200 |
commit | fc695f84178c088c712480811bad3925c27e9b3f (patch) | |
tree | 3caa60be45d66be1234f03268f6d943a8b5effe6 /src/lib/ndpi_utils.c | |
parent | 6831187d6288d6482d99ec2c72c7d0794e4020cf (diff) |
Fix string truncation.fix/strncpy-trunc
ndpi_main.c: In function ‘ndpi_load_ip_category’:
ndpi_main.c:6598:3: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
6598 | strncpy(ipbuf, ip_address_and_mask, sizeof(ipbuf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_utils.c')
0 files changed, 0 insertions, 0 deletions