summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib/libudev-ctrl.c')
-rw-r--r--udev/lib/libudev-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/lib/libudev-ctrl.c b/udev/lib/libudev-ctrl.c
index 80ab0370e2..e47b2b66dc 100644
--- a/udev/lib/libudev-ctrl.c
+++ b/udev/lib/libudev-ctrl.c
@@ -148,7 +148,7 @@ static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int
ctrl_msg_wire.type = type;
if (buf != NULL)
- util_strlcpy(ctrl_msg_wire.buf, buf, sizeof(ctrl_msg_wire.buf));
+ util_strscpy(ctrl_msg_wire.buf, sizeof(ctrl_msg_wire.buf), buf);
else
ctrl_msg_wire.intval = intval;