diff options
Diffstat (limited to 'xfa/src')
-rw-r--r-- | xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.cpp index 65891a5edb..2621abeb63 100644 --- a/xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.cpp +++ b/xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.cpp @@ -86,7 +86,7 @@ uint8_t* CBC_QRCodeWriter::Encode(const CFX_WideString& contents, BC_EXCEPTION_CHECK_ReturnValue(e, NULL);
outWidth = qr.GetMatrixWidth();
outHeight = qr.GetMatrixWidth();
- uint8_t* result = FX_Alloc(uint8_t, outWidth * outWidth);
+ uint8_t* result = FX_Alloc2D(uint8_t, outWidth, outHeight);
FXSYS_memcpy(result, qr.GetMatrix()->GetArray(), outWidth * outHeight);
return result;
}
|