summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/lib/texmfmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/lib/texmfmp.c')
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index a7252ee1992..7a46cd06eb7 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -3324,7 +3324,8 @@ void getfiledump(integer s, int offset, int length)
FILE *f;
int read, i;
#if defined(XeTeX)
- char *readbuffer, strbuf[3];
+ unsigned char *readbuffer;
+ char strbuf[3];
int j, k;
#else
poolpointer data_ptr;
@@ -3364,7 +3365,7 @@ void getfiledump(integer s, int offset, int length)
return;
}
#if defined(XeTeX)
- readbuffer = (char *)xmalloc (length + 1);
+ readbuffer = (unsigned char *)xmalloc (length + 1);
read = fread(readbuffer, sizeof(char), length, f);
fclose(f);
for (j = 0; j < read; j++) {