Browse Source

Fix v8 build on windows

reported to v8 in http://codereview.chromium.org/6056006/
v0.7.4-release
Bert Belder 14 years ago
committed by Ryan Dahl
parent
commit
595509bb4c
  1. 2
      deps/v8/src/platform-win32.cc

2
deps/v8/src/platform-win32.cc

@ -1474,7 +1474,7 @@ Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) {
void Thread::set_name(const char* name) { 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'; name_[sizeof(name_) - 1] = '\0';
} }

Loading…
Cancel
Save