Commit 7ccc9bd9d5463d29f3fc19a7f7718842e3b68be8

Authored by Jay Berkenbilt
1 parent a51ae10b

Remove all calls to strcpy

Showing 1 changed file with 6 additions and 2 deletions
libqpdf/Pl_ASCIIHexDecoder.cc
... ... @@ -9,7 +9,9 @@ Pl_ASCIIHexDecoder::Pl_ASCIIHexDecoder(char const* identifier, Pipeline* next) :
9 9 pos(0),
10 10 eod(false)
11 11 {
12   - strcpy(this->inbuf, "00"); // XXXX
  12 + this->inbuf[0] = '0';
  13 + this->inbuf[1] = '0';
  14 + this->inbuf[2] = '\0';
13 15 }
14 16  
15 17 Pl_ASCIIHexDecoder::~Pl_ASCIIHexDecoder()
... ... @@ -98,7 +100,9 @@ Pl_ASCIIHexDecoder::flush()
98 100 getNext()->write(&ch, 1);
99 101  
100 102 this->pos = 0;
101   - strcpy(this->inbuf, "00"); // XXXX
  103 + this->inbuf[0] = '0';
  104 + this->inbuf[1] = '0';
  105 + this->inbuf[2] = '\0';
102 106 }
103 107  
104 108 void
... ...