summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfencrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfencrypt.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfencrypt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfencrypt.c b/Build/source/texk/dvipdfm-x/pdfencrypt.c
index f1f5f1fa54b..a884ba1a735 100644
--- a/Build/source/texk/dvipdfm-x/pdfencrypt.c
+++ b/Build/source/texk/dvipdfm-x/pdfencrypt.c
@@ -44,6 +44,8 @@
#include "pdfencrypt.h"
+#include "dvipdfmx.h"
+
#define MAX_KEY_LEN 16
#define MAX_STR_LEN 32
@@ -96,8 +98,8 @@ void pdf_enc_compute_id_string (char *dviname, char *pdfname)
MD5_write(&md5_ctx, (unsigned char *)date_string, strlen(date_string));
RELEASE (date_string);
- producer = NEW (strlen(PRODUCER)+strlen(PACKAGE)+strlen(VERSION), char);
- sprintf(producer, PRODUCER, PACKAGE, VERSION);
+ producer = NEW (strlen(PRODUCER)+strlen(my_name)+strlen(VERSION), char);
+ sprintf(producer, PRODUCER, my_name, VERSION);
MD5_write(&md5_ctx, (unsigned char *)producer, strlen(producer));
RELEASE (producer);