mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
Fix v8 build on windows
reported to v8 in http://codereview.chromium.org/6056006/
This commit is contained in:
1 parent
cf2e4f44af
commit
595509bb4c
1 file changed
+1
-1
Vendored
+1
-1
@@ -1474,7 +1474,7 @@ Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) {
|
||||
|
||||
|
||||
void Thread::set_name(const char* name) {
|
||||
strncpy_s(name_, name, sizeof(name_));
|
||||
strncpy_s(name_, sizeof(name_), name, strlen(name));
|
||||
name_[sizeof(name_) - 1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user