Reviewers: Mads Ager, Description: Fix possibly wrong use of strncpy_s
This should also fix MinGW build. Please review this at http://codereview.chromium.org/6376003/ 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 6378) +++ src/platform-win32.cc (working copy) @@ -1474,7 +1474,7 @@ void Thread::set_name(const char* name) { - strncpy_s(name_, name, sizeof(name_)); + OS::StrNCpy(Vector<char>(name_, sizeof(name_)), name, strlen(name)); name_[sizeof(name_) - 1] = '\0'; } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
