From 7ccc9bd9d5463d29f3fc19a7f7718842e3b68be8 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 28 Feb 2013 16:22:54 -0500 Subject: Remove all calls to strcpy --- libqpdf/Pl_ASCIIHexDecoder.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libqpdf') 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 -- cgit v1.2.3-54-g00ecf