| Index: src/v8utils.cc
|
| diff --git a/src/v8utils.cc b/src/v8utils.cc
|
| index 58ad4e5edd5262b7dba1e67c769250e090ac3af1..c5ca846119c5d1e23dca23c67a0e3b0d5bdc3680 100644
|
| --- a/src/v8utils.cc
|
| +++ b/src/v8utils.cc
|
| @@ -105,12 +105,12 @@ char* ReadLine(const char* prompt) {
|
| char* new_result = NewArray<char>(new_len);
|
| // Copy the existing input into the new array and set the new
|
| // array as the result.
|
| - memcpy(new_result, result, offset * kCharSize);
|
| + OS::MemCopy(new_result, result, offset * kCharSize);
|
| DeleteArray(result);
|
| result = new_result;
|
| }
|
| // Copy the newly read line into the result.
|
| - memcpy(result + offset, line_buf, len * kCharSize);
|
| + OS::MemCopy(result + offset, line_buf, len * kCharSize);
|
| offset += len;
|
| }
|
| ASSERT(result != NULL);
|
|
|