diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-17 16:10:37 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-17 16:10:37 +0200 |
commit | 9f682265d6631a29457abeb53827d01fa77493c8 (patch) | |
tree | 92a1eec49b1f280931598a72dcf0cca3d795f210 /deps/v8/src/string-stream.cc | |
parent | 951e0b69fa3c8b1a5d708e29de9d6f7d1db79827 (diff) | |
download | android-node-v8-9f682265d6631a29457abeb53827d01fa77493c8.tar.gz android-node-v8-9f682265d6631a29457abeb53827d01fa77493c8.tar.bz2 android-node-v8-9f682265d6631a29457abeb53827d01fa77493c8.zip |
deps: upgrade v8 to 3.18.0
Diffstat (limited to 'deps/v8/src/string-stream.cc')
-rw-r--r-- | deps/v8/src/string-stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/string-stream.cc b/deps/v8/src/string-stream.cc index bcc30f9ab3..61eec0d696 100644 --- a/deps/v8/src/string-stream.cc +++ b/deps/v8/src/string-stream.cc @@ -254,7 +254,7 @@ void StringStream::Add(const char* format, FmtElm arg0, FmtElm arg1, SmartArrayPointer<const char> StringStream::ToCString() const { char* str = NewArray<char>(length_ + 1); - memcpy(str, buffer_, length_); + OS::MemCopy(str, buffer_, length_); str[length_] = '\0'; return SmartArrayPointer<const char>(str); } @@ -575,7 +575,7 @@ char* HeapStringAllocator::grow(unsigned* bytes) { if (new_space == NULL) { return space_; } - memcpy(new_space, space_, *bytes); + OS::MemCopy(new_space, space_, *bytes); *bytes = new_bytes; DeleteArray(space_); space_ = new_space; |