diff options
Diffstat (limited to 'fxbarcode/datamatrix/BC_Base256Encoder.cpp')
-rw-r--r-- | fxbarcode/datamatrix/BC_Base256Encoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fxbarcode/datamatrix/BC_Base256Encoder.cpp b/fxbarcode/datamatrix/BC_Base256Encoder.cpp index b7dd69c0f7..1010cfe32c 100644 --- a/fxbarcode/datamatrix/BC_Base256Encoder.cpp +++ b/fxbarcode/datamatrix/BC_Base256Encoder.cpp @@ -35,6 +35,7 @@ int32_t CBC_Base256Encoder::getEncodingMode() { } void CBC_Base256Encoder::Encode(CBC_EncoderContext& context, int32_t& e) { WideString buffer; + buffer.Reserve(context.getRemainingCharacters() + 1); buffer += L'\0'; while (context.hasMoreCharacters()) { wchar_t c = context.getCurrentChar(); |