提交 60b0d10e 编写于 作者: Z zdenop@gmail.com

fix for issue 690

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@736 d0cd1f9f-072b-0410-8dd7-cf729c803f20
上级 b064cf51
......@@ -585,6 +585,7 @@ char* ResultIterator::GetUTF8Text(PageIteratorLevel level) const {
}
break;
}
if (text.string() == NULL) return NULL;
int length = text.length() + 1;
char* result = new char[length];
strncpy(result, text.string(), length);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册