Skip to content

Commit 595509b

Browse files
piscisaureusry
authored andcommitted
Fix v8 build on windows
reported to v8 in http://codereview.chromium.org/6056006/
1 parent cf2e4f4 commit 595509b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/v8/src/platform-win32.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) {
14741474

14751475

14761476
void Thread::set_name(const char* name) {
1477-
strncpy_s(name_, name, sizeof(name_));
1477+
strncpy_s(name_, sizeof(name_), name, strlen(name));
14781478
name_[sizeof(name_) - 1] = '\0';
14791479
}
14801480

0 commit comments

Comments
 (0)