Revision: 6151
Author: [email protected]
Date: Tue Jan  4 04:11:01 2011
Log: Fix Windows compilation

Use strncpy_s instaad of strncpy to avoid warning.
Review URL: http://codereview.chromium.org/6056006
http://code.google.com/p/v8/source/detail?r=6151

Modified:
 /branches/bleeding_edge/src/platform-win32.cc

=======================================
--- /branches/bleeding_edge/src/platform-win32.cc       Tue Jan  4 01:09:50 2011
+++ /branches/bleeding_edge/src/platform-win32.cc       Tue Jan  4 04:11:01 2011
@@ -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

Reply via email to