board/BuR/common: use strlcpy instead of strncpy
authorBernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Fri, 4 Apr 2025 07:27:57 +0000 (09:27 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 16 Apr 2025 13:39:48 +0000 (15:39 +0200)
commit970152e4d1d0a839bf004e701ced597e8fc23237
treedc5b58002a51c8489fdf33bf0f8379a5699ca735
parent672d081196b92745799149714d4cd7f58d9fd356
board/BuR/common: use strlcpy instead of strncpy

Now strlcpy is used to copy the defip string to the corresponding
environment variable. This preserves memory for the NULL termination.

Signed-off-by: Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Link: https://lore.kernel.org/r/20250404072819.69642-2-bernhard.messerklinger@br-automation.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/BuR/common/common.c