summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_SddProc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_SddProc.cpp')
-rw-r--r--core/fxcodec/jbig2/JBig2_SddProc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fxcodec/jbig2/JBig2_SddProc.cpp b/core/fxcodec/jbig2/JBig2_SddProc.cpp
index 6bf40efd8f..29c604f1c7 100644
--- a/core/fxcodec/jbig2/JBig2_SddProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_SddProc.cpp
@@ -6,6 +6,8 @@
#include "core/fxcodec/jbig2/JBig2_SddProc.h"
+#include <string.h>
+
#include <algorithm>
#include <memory>
#include <utility>
@@ -448,8 +450,8 @@ std::unique_ptr<CJBig2_SymbolDict> CJBig2_SDDProc::DecodeHuffman(
if (pStream->getByteLeft() >= stride * HCHEIGHT) {
BHC = pdfium::MakeUnique<CJBig2_Image>(TOTWIDTH, HCHEIGHT);
for (I = 0; I < HCHEIGHT; I++) {
- JBIG2_memcpy(BHC->data() + I * BHC->stride(), pStream->getPointer(),
- stride);
+ memcpy(BHC->data() + I * BHC->stride(), pStream->getPointer(),
+ stride);
pStream->offset(stride);
}
} else {