Revision: 6382 Author: [email protected] Date: Wed Jan 19 00:34:24 2011 Log: Fix possibly wrong use of strncpy_s
This should also fix MinGW build. Review URL: http://codereview.chromium.org/6376003 http://code.google.com/p/v8/source/detail?r=6382 Modified: /branches/bleeding_edge/src/platform-win32.cc ======================================= --- /branches/bleeding_edge/src/platform-win32.cc Tue Jan 4 04:11:01 2011 +++ /branches/bleeding_edge/src/platform-win32.cc Wed Jan 19 00:34:24 2011 @@ -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
