name correction

This commit is contained in:
Robin Müller 2020-06-06 16:48:21 +02:00
parent be066755c0
commit 92f493f13a

View File

@ -6,7 +6,7 @@
PosixThread::PosixThread(const char* name_, int priority_, size_t stackSize_):
thread(0),priority(priority_),stackSize(stackSize_) {
name[0] = '\0';
strncat(name, name_, PTHREAD_MAX_NAMELE - 1);
strncat(name, name_, PTHREAD_MAX_NAMELEN - 1);
}
PosixThread::~PosixThread() {