diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-05 10:16:36 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-05 10:16:36 +0200 |
commit | c5d6d98a2eafc15bf29d59bf19c60ef73d4fcec8 (patch) | |
tree | 3e58eb6160cdc0cabcea1024709e8d418e17e712 /src/lib/protocols/pptp.c | |
parent | b7c103080493f93b2594b878656076d238211ba0 (diff) |
Fix string copy truncation warning.fix/strinop-truncation
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>
Diffstat (limited to 'src/lib/protocols/pptp.c')
0 files changed, 0 insertions, 0 deletions