variable for max name len
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user