aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libqpdf/QPDFWriter.cc12
-rw-r--r--libqpdf/QPDF_encryption.cc2
2 files changed, 7 insertions, 7 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 3dcd7b82..95fba4e0 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -1408,12 +1408,12 @@ QPDFWriter::generateID()
if (this->static_id)
{
// For test suite use only...
- static char tmp[] = {0x31, 0x41, 0x59, 0x26,
- 0x53, 0x58, 0x97, 0x93,
- 0x23, 0x84, 0x62, 0x64,
- 0x33, 0x83, 0x27, 0x95,
- 0x00};
- result = tmp;
+ static unsigned char tmp[] = {0x31, 0x41, 0x59, 0x26,
+ 0x53, 0x58, 0x97, 0x93,
+ 0x23, 0x84, 0x62, 0x64,
+ 0x33, 0x83, 0x27, 0x95,
+ 0x00};
+ result = (char*)tmp;
}
else
{
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index 772d87e0..15acf067 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -16,7 +16,7 @@
#include <assert.h>
#include <string.h>
-static char const padding_string[] = {
+static unsigned char const padding_string[] = {
0x28, 0xbf, 0x4e, 0x5e, 0x4e, 0x75, 0x8a, 0x41,
0x64, 0x00, 0x4e, 0x56, 0xff, 0xfa, 0x01, 0x08,
0x2e, 0x2e, 0x00, 0xb6, 0xd0, 0x68, 0x3e, 0x80,