diff options
author | Toni <matzeton@googlemail.com> | 2023-07-22 12:45:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 12:45:45 +0200 |
commit | 88a757c4cd3a6912fa5c8405677168e6a4f06ab1 (patch) | |
tree | 3caa60be45d66be1234f03268f6d943a8b5effe6 /src/lib/ndpi_utils.c | |
parent | 6831187d6288d6482d99ec2c72c7d0794e4020cf (diff) |
Fix string truncation. (#2056)
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