mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
cast arg to isspace to unsigned char
git-svn-id: svn+q:///qpdf/trunk@683 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
parent
9bc73a49ed
commit
7acc0498eb
@ -1342,7 +1342,8 @@ QPDF::readToken(InputSource* input)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isspace(ch) && (input->getLastOffset() == offset))
|
||||
if (isspace((unsigned char)ch) &&
|
||||
(input->getLastOffset() == offset))
|
||||
{
|
||||
++offset;
|
||||
}
|
||||
@ -1460,7 +1461,7 @@ QPDF::readObjectAtOffset(off_t offset, int exp_objid, int exp_generation,
|
||||
char ch;
|
||||
if (this->file.read(&ch, 1))
|
||||
{
|
||||
if (! isspace(ch))
|
||||
if (! isspace((unsigned char)ch))
|
||||
{
|
||||
this->file.seek(-1, SEEK_CUR);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user