Corrected the write of the Device object name for the demo object.
This commit is contained in:
@@ -211,8 +211,8 @@ bool Device_Set_Object_Name(
|
|||||||
/* FIXME: All the object names in a device must be unique.
|
/* FIXME: All the object names in a device must be unique.
|
||||||
Disallow setting the Device Object Name to any objects in
|
Disallow setting the Device Object Name to any objects in
|
||||||
the device. */
|
the device. */
|
||||||
if (length < sizeof(Object_Name)) {
|
if (length < sizeof(My_Object_Name)) {
|
||||||
memmove(Object_Name, name, length);
|
memmove(My_Object_Name, name, length);
|
||||||
My_Object_Name[length] = 0;
|
My_Object_Name[length] = 0;
|
||||||
status = true;
|
status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user