1
0
forked from fsfw/fsfw

variable for name len

This commit is contained in:
2020-06-06 16:25:06 +02:00
parent 096fbec156
commit b79efa6d6c
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() {