Fixed two errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10712 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
590df48760
commit
0de5e01089
|
@ -146,13 +146,13 @@ dyn_object_t *chFactoryCreateObject(const char *name, size_t size) {
|
|||
}
|
||||
|
||||
/* Initializing object data and metadata.*/
|
||||
strncpy(&dop->list.name, name, CH_CFG_FACTORY_MAX_NAMES_LENGHT);
|
||||
strncpy(dop->list.name, name, CH_CFG_FACTORY_MAX_NAMES_LENGHT);
|
||||
dop->list.refs = 1;
|
||||
dop->list.next = ch_factory.obj_list.next;
|
||||
memset((void *)dop->obj, 0, size);
|
||||
|
||||
/* Updating factory list.*/
|
||||
ch_factory.obj_list.next = dop;
|
||||
ch_factory.obj_list.next = (dyn_element_t *)dop;
|
||||
|
||||
chSysUnlock();
|
||||
|
||||
|
|
Loading…
Reference in New Issue