Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 1b91cf0cc5047d91d55ccd11e64e0651840d8fcd..86c314c0dbda8c4ea659b32c16a5ef105a6b7fda 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1097,7 +1097,7 @@ Handle<String> Factory::EmergencyNewError(const char* message, |
char* p = &buffer[0]; |
Vector<char> v(buffer, kBufferSize); |
- OS::StrNCpy(v, message, space); |
+ StrNCpy(v, message, space); |
space -= Min(space, strlen(message)); |
p = &buffer[kBufferSize] - space; |
@@ -1110,7 +1110,7 @@ Handle<String> Factory::EmergencyNewError(const char* message, |
Object::GetElement(isolate(), args, i).ToHandleChecked()); |
SmartArrayPointer<char> arg = arg_str->ToCString(); |
Vector<char> v2(p, static_cast<int>(space)); |
- OS::StrNCpy(v2, arg.get(), space); |
+ StrNCpy(v2, arg.get(), space); |
space -= Min(space, strlen(arg.get())); |
p = &buffer[kBufferSize] - space; |
} |