diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-05-26 04:55:48 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-05-26 04:55:48 +0000 |
commit | c4383680c5d2c9766477cf8faabfa021f280fc11 (patch) | |
tree | efbe92569058b681fbf67ab1a3765675a90ab360 /Build/source/texk/dvipdfm-x/spc_dvips.c | |
parent | cfc780dee77501f8a72837c08c01719583bcdc67 (diff) |
Fix for compiler warnings. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@51226 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_dvips.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_dvips.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfm-x/spc_dvips.c b/Build/source/texk/dvipdfm-x/spc_dvips.c index 7813c0114a4..33847f1bf90 100644 --- a/Build/source/texk/dvipdfm-x/spc_dvips.c +++ b/Build/source/texk/dvipdfm-x/spc_dvips.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2019 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -353,7 +353,7 @@ spc_handler_ps_tricks_tdef (struct spc_env *spe, struct spc_arg *args) return 0; } -static int calculate_PS (char *string, int length, double *res1, double *res2, double *res3, double *res4, double *res5, double *res6); +static int calculate_PS (char *strptr, int length, double *res1, double *res2, double *res3, double *res4, double *res5, double *res6); static int spc_handler_ps_tricks_bput (struct spc_env *spe, struct spc_arg *args, int must_def, int pre_def) @@ -483,7 +483,7 @@ spc_handler_ps_tricks_transform (struct spc_env *spe, struct spc_arg *args) static const char *post = "concat matrix currentmatrix =="; cmd = calloc(l + 41, 1); - strncpy(cmd, "matrix setmatrix ", 17); + strncpy(cmd, "matrix setmatrix ", 18); strncpy(cmd + 17, args->curptr, l); concat = strstr(cmd, "concat"); if (concat != 0) { @@ -1027,7 +1027,7 @@ spc_dvips_setup_handler (struct spc_handler *handle, #endif static -int calculate_PS (char *string, int length, double *res1, double *res2, double *res3, double *res4, double *res5, double *res6) { +int calculate_PS (char *strptr, int length, double *res1, double *res2, double *res3, double *res4, double *res5, double *res6) { char *formula, *cmd; FILE *fp, *coord; int k; @@ -1049,7 +1049,7 @@ int calculate_PS (char *string, int length, double *res1, double *res2, double * fprintf(fp, "(%s) run\n", page_defs); if (temporary_defs) fprintf(fp, "(%s) run\n", temporary_defs); - fwrite(string, 1, length, fp); + fwrite(strptr, 1, length, fp); fclose(fp); #ifdef MIKTEX { |