zephyr/subsys/net/lib
Jukka Rissanen cc282e56e8 net: mdns_responder: Use memcpy instead of strncpy for iface name
Following warning is printed if using strncpy(), so use memcpy()
instead. Note that this is false positive as there is no error here but
in order to avoid the warning, change the copy function.

subsys/net/lib/dns/mdns_responder.c:1371:25: warning:
'strncpy' output may be truncated copying 7 bytes from a string
of length 8 [-Wstringop-truncation]
 1468 | strncpy(if_req.ifr_name, name, sizeof(if_req.ifr_name) - 1);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

subsys/net/lib/dns/mdns_responder.c:1468:25: warning:
'strncpy' output may be truncated copying 7 bytes from a string
of length 8 [-Wstringop-truncation]
 1468 | strncpy(if_req.ifr_name, name, sizeof(if_req.ifr_name) - 1);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-21 17:05:10 +01:00
..
capture net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
coap net: coap_client: Stop lifetime on piggybacked Ack 2025-03-07 20:01:26 +01:00
config
dhcpv4 net: dhcpv4: fix deadlock issue 2025-03-07 20:22:58 +01:00
dhcpv6 net: dhcpv6: Add support for DNS Recursive Name Server option 2025-02-12 20:19:26 +01:00
dns net: mdns_responder: Use memcpy instead of strncpy for iface name 2025-03-21 17:05:10 +01:00
http net: http: Add compression support in HTTP server 2025-03-07 20:19:44 +01:00
lwm2m net: lib: tls_credentials: Rename TLS_CREDENTIAL_SERVER_CERTIFICATE 2025-03-21 14:18:52 +01:00
mqtt
mqtt_sn net: mqtt-sn: Wait for register & subscribe to complete 2025-02-11 11:44:52 +00:00
prometheus net: prometheus: Add way to format output by a metric 2024-11-26 15:42:40 -05:00
ptp ptp: clock.c: revise offset calculation 2025-02-21 18:35:34 +00:00
shell net: shell: conn: Print all connection information 2025-03-20 17:15:36 +01:00
sntp net: lib: sntp: async query API 2025-03-07 19:51:40 +01:00
sockets net: sockets: IPv6_MULTICAST_LOOP Support 2025-03-21 14:19:08 +01:00
socks
tftp
tls_credentials net: lib: tls_credentials: Rename TLS_CREDENTIAL_SERVER_CERTIFICATE 2025-03-21 14:18:52 +01:00
trickle net: trickle: Remove useless asserts 2024-12-10 11:09:25 +01:00
utils
websocket net: websocket: don't mask data sent from server via zvfs write 2025-01-03 13:26:43 +01:00
wifi_credentials secure_storage: add a global registry header file for PSA key IDs 2025-02-13 20:22:09 +01:00
zperf net: lib: zperf: improve UDP RX throughput 2025-03-19 10:58:16 +01:00
CMakeLists.txt
Kconfig