From 595509bb4ccb5eb94e4bbf999482a22fc80fa2cc Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 17 Jan 2011 21:12:56 +0100 Subject: [PATCH] Fix v8 build on windows reported to v8 in http://codereview.chromium.org/6056006/ --- deps/v8/src/platform-win32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/v8/src/platform-win32.cc b/deps/v8/src/platform-win32.cc index 81216e190d..a97785e4c3 100644 --- a/deps/v8/src/platform-win32.cc +++ b/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) { - strncpy_s(name_, name, sizeof(name_)); + strncpy_s(name_, sizeof(name_), name, strlen(name)); name_[sizeof(name_) - 1] = '\0'; }