diff options
author | Toni <matzeton@googlemail.com> | 2022-09-05 11:16:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 11:16:06 +0200 |
commit | 01028ee77921cb21dee8b0e5f1f912ffd304244a (patch) | |
tree | eaff712cd5adfab48d30499b9e2729d2c11621f9 /src/lib/protocols/fastcgi.c | |
parent | 378b0c5953aa9a1a82bfd68dc058e0eb893edf21 (diff) |
Fix string copy truncation warning. (#1723)
protocols/ubntac2.c: In function ‘ndpi_search_ubntac2’:
protocols/ubntac2.c:69:4: warning: ‘strncpy’ output may be truncated copying between 0 and 31 bytes from a string of length 255 [-Wstringop-truncation]
69 | strncpy(flow->protos.ubntac2.version, (const char *)version, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/fastcgi.c')
0 files changed, 0 insertions, 0 deletions