aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-07-13 00:52:13 +0200
committerJay Berkenbilt <ejb@ql.org>2009-07-13 00:52:13 +0200
commita9987ab57042ce755261492d93cb54d9ff10fc35 (patch)
treed764928987ee492a1051cff2df0236dbb4d2ed35 /libqpdf/QPDF_encryption.cc
parent0b87334a611878e354e1aea5d26f4cd407bafc73 (diff)
downloadqpdf-a9987ab57042ce755261492d93cb54d9ff10fc35.tar.zst
Fix a few compiler errors reported correctly my MSVC 9.0.
Fix libtests test suites to pass on Windows, mostly by dealing with ascii vs. binary and NL vs. CRNL change ($td->NORMALIZE_NEWLINES). Convert some test suites to use fread instead of read. PCRE.hh: define PCRE_STATIC if on Windows. Provide cross-platform function for getting current time instead of using time(0). git-svn-id: svn+q:///qpdf/trunk@678 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index 39b34070..bd7ef7a6 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -45,7 +45,7 @@ QPDF::trim_user_password(std::string& user_password)
return;
}
- char* p = 0;
+ char const* p = 0;
while ((p = strchr(cstr, '\x28')) != 0)
{
if (memcmp(p, padding_string, len - (p - cstr)) == 0)