summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@ghostscript.com>2008-09-30 22:59:03 +0200
committerRalph Giles <giles@ghostscript.com>2008-09-30 22:59:03 +0200
commit60c5467240c56fe0c7ed28cdb4ac663f76b48963 (patch)
treecbc184b82984bd4db4329390b390a780eb9e70f5
parent39ffc6b6fe9fdfb3943c6c9c0bcfb2961b90aae9 (diff)
downloadmupdf-60c5467240c56fe0c7ed28cdb4ac663f76b48963.tar.xz
Remove a cast now that md5 buffers are const.
-rw-r--r--mupdf/pdf_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_crypt.c b/mupdf/pdf_crypt.c
index b32a6398..3aa87602 100644
--- a/mupdf/pdf_crypt.c
+++ b/mupdf/pdf_crypt.c
@@ -427,7 +427,7 @@ createuser(pdf_crypt *crypt, unsigned char *userpw, int pwlen)
/* Step 2 */
fz_md5init(&md5);
- fz_md5update(&md5, (unsigned char *) padding, 32);
+ fz_md5update(&md5, padding, 32);
/* Step 3 */
fz_md5update(&md5, (unsigned char *) fz_tostrbuf(crypt->id),