summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/spc_dvips.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/spc_dvips.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/spc_dvips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/spc_dvips.c b/Build/source/texk/xdvipdfmx/src/spc_dvips.c
index 2eac7ebcbd1..70484258032 100644
--- a/Build/source/texk/xdvipdfmx/src/spc_dvips.c
+++ b/Build/source/texk/xdvipdfmx/src/spc_dvips.c
@@ -470,7 +470,7 @@ check_next_obj(unsigned char * buffer)
return 0;
}
- if (strncmp(buffer, "pst:", 4))
+ if (strncmp((char*)buffer, "pst:", 4))
return 0;
return 1;
}
@@ -594,7 +594,7 @@ spc_handler_ps_tricks_render (struct spc_env *spe, struct spc_arg *args)
fwrite(args->curptr, 1, args->endptr - args->curptr, fp);
fprintf(fp, "\ncount 1 sub {pop} repeat restore\n");
- if (check_next_obj(args->endptr)) {
+ if (check_next_obj((unsigned char*)args->endptr)) {
fclose(fp);
} else {
char *distiller_template = get_distiller_template();