[orbis-kernel] osem: fix saving name on create

This commit is contained in:
DH 2023-11-10 21:12:19 +03:00
parent 7dd0b10f7a
commit c998b3760a

View file

@ -406,6 +406,7 @@ orbis::SysResult orbis::sys_osem_create(Thread *thread,
return ErrorCode::EXIST; // FIXME: verify
}
std::strncpy(insertedSem->name, _name, 32);
sem = insertedSem;
} else {
sem = knew<Semaphore>(attrs, initCount, maxCount);