variable for name len
This commit is contained in:
1 parent
096fbec156
commit
b79efa6d6c
2 files changed
+4
-3
No files matched your search
@@ -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