diff --git a/src/lib_ccx/ocr.c b/src/lib_ccx/ocr.c index c1375297..0770825e 100644 --- a/src/lib_ccx/ocr.c +++ b/src/lib_ccx/ocr.c @@ -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++;