diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-04-27 20:18:39 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-04-27 20:18:39 +0000 |
commit | 610515863eb0735c5cc2728fd3a46dd9dc1448ac (patch) | |
tree | 86ff3aa60c31c6f1560b67778c48a95e329e0655 /Build/source/texk/xdvipdfmx/src/spc_dvips.c | |
parent | d2b812efcb00f795dc13fba2c60a3260f2255699 (diff) |
xdvipdfmx portability fix and warning reduction, cf xetex svn r.662
git-svn-id: svn://tug.org/texlive/trunk@7683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/spc_dvips.c')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/spc_dvips.c | 4 |
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(); |