summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-02-28 22:22:54 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-05 19:35:46 +0100
commit7ccc9bd9d5463d29f3fc19a7f7718842e3b68be8 (patch)
tree0aa3455b93d0bf0e093a8fecc4ac0abd99afa4da
parenta51ae10b8ddada900c1abacd6284d35f6e65aa08 (diff)
downloadqpdf-7ccc9bd9d5463d29f3fc19a7f7718842e3b68be8.tar.zst
Remove all calls to strcpy
-rw-r--r--libqpdf/Pl_ASCIIHexDecoder.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libqpdf/Pl_ASCIIHexDecoder.cc b/libqpdf/Pl_ASCIIHexDecoder.cc
index 059f85a7..d6acab24 100644
--- a/libqpdf/Pl_ASCIIHexDecoder.cc
+++ b/libqpdf/Pl_ASCIIHexDecoder.cc
@@ -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