Index: src/flags.cc |
diff --git a/src/flags.cc b/src/flags.cc |
index 59a7a52746aa5ac04c371b122130034444474017..a7fae681ae91d6bc173432521fa28088ad9ae4f9 100644 |
--- a/src/flags.cc |
+++ b/src/flags.cc |
@@ -305,7 +305,7 @@ static void SplitArgument(const char* arg, |
// make a copy so we can NUL-terminate flag name |
size_t n = arg - *name; |
CHECK(n < static_cast<size_t>(buffer_size)); // buffer is too small |
- memcpy(buffer, *name, n); |
+ OS::MemCopy(buffer, *name, n); |
buffer[n] = '\0'; |
*name = buffer; |
// get the value |
@@ -475,7 +475,7 @@ static char* SkipBlackSpace(char* p) { |
int FlagList::SetFlagsFromString(const char* str, int len) { |
// make a 0-terminated copy of str |
ScopedVector<char> copy0(len + 1); |
- memcpy(copy0.start(), str, len); |
+ OS::MemCopy(copy0.start(), str, len); |
copy0[len] = '\0'; |
// strip leading white space |