mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Remove all calls to strcpy
This commit is contained in:
parent
a51ae10b8d
commit
7ccc9bd9d5
@ -9,7 +9,9 @@ Pl_ASCIIHexDecoder::Pl_ASCIIHexDecoder(char const* identifier, Pipeline* next) :
|
||||
pos(0),
|
||||
eod(false)
|
||||
{
|
||||
strcpy(this->inbuf, "00"); // XXXX
|
||||
this->inbuf[0] = '0';
|
||||
this->inbuf[1] = '0';
|
||||
this->inbuf[2] = '\0';
|
||||
}
|
||||
|
||||
Pl_ASCIIHexDecoder::~Pl_ASCIIHexDecoder()
|
||||
@ -98,7 +100,9 @@ Pl_ASCIIHexDecoder::flush()
|
||||
getNext()->write(&ch, 1);
|
||||
|
||||
this->pos = 0;
|
||||
strcpy(this->inbuf, "00"); // XXXX
|
||||
this->inbuf[0] = '0';
|
||||
this->inbuf[1] = '0';
|
||||
this->inbuf[2] = '\0';
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user