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(); |