summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfencrypt.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-07-06 07:37:13 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-07-06 07:37:13 +0000
commit4ceea85e891db1d6dd2c6018f89409d29b43a8da (patch)
tree10e7fdc10504daeb380be606675bded53eae0dd8 /Build/source/texk/dvipdfm-x/pdfencrypt.c
parent31db756f1b7f30aeed53c7e7fa152742843ee686 (diff)
texk/dvipdfm-x: Bugfix (undefined type byte) and cleanup
git-svn-id: svn://tug.org/texlive/trunk@37780 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfencrypt.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfencrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfencrypt.c b/Build/source/texk/dvipdfm-x/pdfencrypt.c
index 56853f59589..c6257d3aff5 100644
--- a/Build/source/texk/dvipdfm-x/pdfencrypt.c
+++ b/Build/source/texk/dvipdfm-x/pdfencrypt.c
@@ -94,7 +94,7 @@ void pdf_enc_set_verbose (void)
if (verbose < 255) verbose++;
}
-void
+static void
pdf_enc_init (int use_aes, int encrypt_metadata)
{
struct pdf_sec *p = &sec_data;
@@ -147,7 +147,7 @@ passwd_padding (const char *src, unsigned char *dst)
{
int len;
- len = MIN(32, strlen((char *)src));
+ len = MIN(32, strlen(src));
memcpy(dst, src, len);
memcpy(dst + len, padding_bytes, 32 - len);