variable for max name len

This commit is contained in:
2020-06-06 16:24:33 +02:00
parent 1965a0e33b
commit 6ad36ceb24
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
PosixThread::PosixThread(const char* name_, int priority_, size_t stackSize_):
thread(0),priority(priority_),stackSize(stackSize_) {
strncpy(name,name_,16);
strncpy(name, name_, PTHREAD_MAX_NAMELEN);
}
PosixThread::~PosixThread() {