Reviewers: Rico, Description: Fix Windows compilation
Use strncpy_s instaad of strncpy to avoid warning. Please review this at http://codereview.chromium.org/6056006/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/platform-win32.cc Index: src/platform-win32.cc =================================================================== --- src/platform-win32.cc (revision 6144) +++ src/platform-win32.cc (working copy) @@ -1474,7 +1474,7 @@ void Thread::set_name(const char* name) { - strncpy(name_, name, sizeof(name_)); + strncpy_s(name_, name, sizeof(name_)); name_[sizeof(name_) - 1] = '\0'; } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
