chiark / gitweb /
use more efficient string copying
[elogind.git] / udev / lib / libudev-ctrl.c
index 80ab0370e237dba6e108b8d0d72e838eba044630..e47b2b66dc6eb02910e1bad1e26243b4c86a74d8 100644 (file)
@@ -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;