Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: include/ots-memory-stream.h

Issue 49933002: [OTS] build failure on QNX (Closed) Base URL: ssh://git.rim.net/users/efidler/ots.git@blackberry_5
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/cmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ots-memory-stream.h
diff --git a/include/ots-memory-stream.h b/include/ots-memory-stream.h
index 999b21f25b1f3bc27e6786f628759bbe3eda19c3..579da616fb797111d9e955fe56fcda4f2d82b3c6 100644
--- a/include/ots-memory-stream.h
+++ b/include/ots-memory-stream.h
@@ -71,7 +71,7 @@ class ExpandingMemoryStream : public OTSStream {
if (new_length > limit_)
new_length = limit_;
uint8_t* new_buf = new uint8_t[new_length];
- memcpy(new_buf, ptr_, length_);
+ std::memcpy(new_buf, ptr_, length_);
length_ = new_length;
delete[] static_cast<uint8_t*>(ptr_);
ptr_ = new_buf;
« no previous file with comments | « no previous file | src/cmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698