staging: most: configfs: use strlcpy
commitd72f82635e3317b5e035af40aa815c6d064c2fee
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 13 Dec 2019 12:04:17 +0000 (13 13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 12:54:36 +0000 (17 13:54 +0100)
tree78a235aa61cc91ecbef78cb4b3d0afd0f3255482
parentb4e37a5e2c3202438f777410481a55de7137d0d4
staging: most: configfs: use strlcpy

This patch uses strlcpy to copy data provided by userspace in order
to not overflow the allocated space.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1576238662-16512-5-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/configfs.c