Index: xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp |
diff --git a/xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp b/xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp |
index ac05e78910f42b6cc43a18dc91875323fe0098f8..98ec75ac2f360dcbfe84a6d126ec9fc4945e5d5d 100644 |
--- a/xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp |
+++ b/xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp |
@@ -211,7 +211,7 @@ int32_t CBC_OnedCode128Writer::Encode128C(const CFX_ByteString& contents, |
patternIndex = (int32_t)ch; |
position++; |
} else { |
- patternIndex = FXSYS_atoi(contents.Mid(position, 2)); |
+ patternIndex = FXSYS_atoi(contents.Mid(position, 2).c_str()); |
if (contents.GetAt(position + 1) < '0' || |
contents.GetAt(position + 1) > '9') { |
position += 1; |