Commit 9af48317 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fix Windows compilation

Use strncpy_s instaad of strncpy to avoid warning.
Review URL: http://codereview.chromium.org/6056006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6151 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 351f80ad
......@@ -1474,7 +1474,7 @@ Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) {
void Thread::set_name(const char* name) {
strncpy(name_, name, sizeof(name_));
strncpy_s(name_, name, sizeof(name_));
name_[sizeof(name_) - 1] = '\0';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment