utils: use strlcpy when appropriate
authorDaniel Golle <daniel@makrotopia.org>
Sun, 7 Jul 2024 16:54:49 +0000 (17:54 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 7 Jul 2024 17:00:35 +0000 (18:00 +0100)
commitf230c11771875adc1f74bef013e8cea1fa1867bc
treeef23609cdb6d0450316e77441f0d70fe99943eff
parenta8cf5480268f90da1ef0f0ea13ffbee10a78dd27
utils: use strlcpy when appropriate

For util functions called with a buffer and length parameter we should
use strlcpy() instead of strncpy(), as those functions are called with
sizeof(buffer) as parameter.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
utils/utils.c