diff options
Diffstat (limited to 'libqpdf/InputSource.cc')
-rw-r--r-- | libqpdf/InputSource.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libqpdf/InputSource.cc b/libqpdf/InputSource.cc index 56e941eb..0afca9e3 100644 --- a/libqpdf/InputSource.cc +++ b/libqpdf/InputSource.cc @@ -121,9 +121,12 @@ InputSource::findFirst( } // Search for the first character. - if ((p = static_cast<char*>(memchr( - p, start_chars[0], bytes_read - QIntC::to_size(p - buf)))) != - 0) { + if ((p = static_cast<char*>( + // line-break + memchr( + p, + start_chars[0], + bytes_read - QIntC::to_size(p - buf)))) != 0) { if (p == buf) { QTC::TC("libtests", "InputSource found match at buf[0]"); } |