diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2021-02-03 11:56:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 11:56:37 +0100 |
commit | a772e18977ec215dbf39cfaa259d6f890f7bd5a0 (patch) | |
tree | c9fa2e4fac6f249778dd94d4444037bd724d2cb5 /example/reader_util.h | |
parent | d6684f4b4c2654edadca16e208a95865ce94d7ef (diff) |
Fix a warning (#1125)
Introduced in 5f7b9d802
reader_util.c: In function ‘process_ndpi_collected_info’:
reader_util.c:1148:60: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 64 [-Wformat-truncation=]
1148 | sizeof(flow->ssh_tls.client_requested_server_name), "%s",
| ^~
reader_util.c:1147:5: note: ‘snprintf’ output between 1 and 256 bytes into a destination of size 64
1147 | snprintf(flow->ssh_tls.client_requested_server_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1148 | sizeof(flow->ssh_tls.client_requested_server_name), "%s",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1149 | flow->ndpi_flow->protos.tls_quic_stun.tls_quic.client_requested_server_name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'example/reader_util.h')
-rw-r--r-- | example/reader_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.h b/example/reader_util.h index ba05144dd..b7ab1bc41 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -204,7 +204,7 @@ typedef struct ndpi_flow_info { struct { u_int16_t ssl_version; - char client_requested_server_name[64], server_info[64], + char client_requested_server_name[256], server_info[64], client_hassh[33], server_hassh[33], *server_names, *tls_alpn, *tls_supported_versions, *tls_issuerDN, *tls_subjectDN, |