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 bindesc: Add support for reading binary descriptors 2024-10-11 13:20:49 -04:00
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 demand_paging: use ram backend by default 2025-01-09 15:50:37 +01:00
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 input: prevent the caller from sleeping in sysworkq 2024-11-29 14:49:43 +01:00
ipc ipc_service: icmsg: Add "unbound" functionality 2025-02-14 13:34:49 +01:00
jwt mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
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 mctp: mark MCTP as experimental 2025-01-15 22:58:09 +01:00
mem_mgmt
mgmt mgmt: ec_host_cmd: remove response leftovers 2025-03-07 20:21:02 +01:00
modbus modbus: initialize return variable. 2025-01-21 19:28:52 +01:00
modem drivers: modem: initialize variables to avoid warn 2024-11-19 10:04:58 -05:00
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 arch: remove z_arch_esf_t 2025-01-23 16:32:36 +01:00
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 sensing: Fix static assert in get_sensor_by_dev() 2025-01-18 12:40:03 +01:00
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 storage/stream_flash: Switch to stream_flash_erase_to_append 2025-01-30 14:13:42 +01:00
task_wdt task_wdt: Kconfig: Increase TASK_WDT_HW_FALLBACK_DELAY range 2025-01-07 20:34:41 +01:00
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 zbus: assert when inside an ISR and time out is not zero 2025-01-21 19:30:20 +01:00
CMakeLists.txt mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00
Kconfig mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00