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'; |
} |