Corrected the write of the Device object name for the demo object.

This commit is contained in:
skarg
2009-10-07 16:35:50 +00:00
parent 17e2d7fc8d
commit 6b05ae39b8
+2 -2
View File
@@ -211,8 +211,8 @@ bool Device_Set_Object_Name(
/* FIXME: All the object names in a device must be unique.
Disallow setting the Device Object Name to any objects in
the device. */
if (length < sizeof(Object_Name)) {
memmove(Object_Name, name, length);
if (length < sizeof(My_Object_Name)) {
memmove(My_Object_Name, name, length);
My_Object_Name[length] = 0;
status = true;
}