zephyr/subsys
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
..
bindesc
bluetooth bluetooth: avdtp: avoid that the ret and err exist together 2025-03-21 09:53:49 +01:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug arch: riscv: Add support for CPU load measuring 2025-03-20 17:14:52 +01:00
demand_paging
dfu dfu: Add support for new MCUboot swap using offset mode 2025-02-10 19:05:25 +01:00
disk
dsp
emul
fb fb: cfb: Remove unused config 2025-02-13 12:14:52 +01:00
fs fs: shell: Refactoring 2025-03-17 02:20:40 +01:00
input
ipc ipc_service: icmsg: Add "unbound" functionality 2025-02-14 13:34:49 +01:00
jwt
llext llext: fix fixed-length name buffer usage 2025-03-19 01:23:59 +01:00
logging logging: Assign IDs to log backends early during log_core_init 2025-03-18 16:42:07 +01:00
lorawan lorawan: add callback for descriptor changes 2025-03-07 19:42:56 +01:00
mctp
mem_mgmt
mgmt mgmt: ec_host_cmd: remove response leftovers 2025-03-07 20:21:02 +01:00
modbus
modem
net net: mdns_responder: Use memcpy instead of strncpy for iface name 2025-03-21 17:05:10 +01:00
pm pm: Remove deprecated function 2025-02-10 03:41:06 +01:00
portability portability: cmsis: Clarify Kconfig set max limit on dynamic objects 2025-03-17 02:21:15 +01:00
profiling
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Transactions assume valid next list nodes 2025-03-14 01:02:10 +01:00
sd sd: mmc: Remove unwanted request to card for reading OCR content 2025-02-26 22:03:23 +00:00
secure_storage modules: mbedtls: add promptless CONFIG_MBEDTLS_PSA_CRYPTO_STORAGE_C 2025-03-14 14:51:58 +01:00
sensing
settings settings: zms: fix some bugs related to the name's ID 2025-03-06 11:37:58 +00:00
shell shell: Set default max argc count when WiFi shell is enabled 2025-03-14 14:40:57 +01:00
sip_svc
stats
storage
task_wdt
testsuite infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
timing
tracing tracing: Add sys_trace_idle_exit call 2025-03-12 14:03:48 +00:00
usb usb: device_next: fix Get Status request response 2025-02-28 14:51:53 +01:00
zbus
CMakeLists.txt
Kconfig