Fix a heap corruption in add_ocrtext2str (#865)

This commit is contained in:
Null 2017-12-31 16:20:30 +08:00 committed by Carlos Fernandez Sanz
parent 84a9ea5572
commit dd4032e515

View File

@ -836,6 +836,7 @@ void add_ocrtext2str(char *dest, char *src, const char *crlf, unsigned crlf_leng
if (!char_found) {
src = line_scan;
}
if (*src == '\0') break;
}
*dest = *src;
src++;