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

Unified Diff: src/cmap.cc

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 | « include/ots-memory-stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmap.cc
diff --git a/src/cmap.cc b/src/cmap.cc
index 2315538646edcb97983e6cd708f74bc8724f18f4..5d52c1e3835f6514a9d47dbe826ba73e1819f089 100644
--- a/src/cmap.cc
+++ b/src/cmap.cc
@@ -233,7 +233,7 @@ bool ParseFormat4(ots::OpenTypeFile *file, int platform, int encoding,
return OTS_FAILURE();
}
uint16_t glyph;
- memcpy(&glyph, data + glyph_id_offset, 2);
+ std::memcpy(&glyph, data + glyph_id_offset, 2);
glyph = ntohs(glyph);
if (glyph >= num_glyphs) {
return OTS_FAILURE();
« no previous file with comments | « include/ots-memory-stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698