diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-18 23:11:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-18 23:11:21 +0000 |
commit | 1644e8b4a9baf844c5e7d67bbdf864444fd864c9 (patch) | |
tree | b53919aeec80fc7c5791288386be20de9a4a2e92 /Build/source/texk/web2c/omegafonts | |
parent | 8d4b98bf6709fc32093c5c7e4ec890346b3f406f (diff) |
printf %s instead of direct string (from Debian)
git-svn-id: svn://tug.org/texlive/trunk@46372 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegafonts')
-rw-r--r-- | Build/source/texk/web2c/omegafonts/ChangeLog | 10 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/error_routines.c | 10 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/out_routines.c | 4 |
3 files changed, 16 insertions, 8 deletions
diff --git a/Build/source/texk/web2c/omegafonts/ChangeLog b/Build/source/texk/web2c/omegafonts/ChangeLog index 22fb82d5379..4eb6a30d066 100644 --- a/Build/source/texk/web2c/omegafonts/ChangeLog +++ b/Build/source/texk/web2c/omegafonts/ChangeLog @@ -1,6 +1,14 @@ +2018-01-18 Karl Berry <karl@tug.org> + + * error_routines.c (yyerror, warning_0, fatal_error_0, + internal_error_0), + * out_routines.c (out): printf %s instead of direct string. + From Debian. + 2016-02-27 Akira Kakuto <kakuto@fuk.kindai.ac.jp> - * omfonts.c, help.test: Add an option -charcode-format for compatibility. + * omfonts.c, help.test: Add an option -charcode-format for + compatibility. 2015-07-07 Peter Breitenlohner <peb@mppmu.mpg.de> diff --git a/Build/source/texk/web2c/omegafonts/error_routines.c b/Build/source/texk/web2c/omegafonts/error_routines.c index ec7979860bf..b1ac96c4ccb 100644 --- a/Build/source/texk/web2c/omegafonts/error_routines.c +++ b/Build/source/texk/web2c/omegafonts/error_routines.c @@ -3,7 +3,7 @@ This file is part of Omega, which is based on the web2c distribution of TeX, -Copyright (c) 1994--2001 John Plaice and Yannis Haralambous +Copyright 1994--2018 John Plaice and Yannis Haralambous Omega is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,7 +62,7 @@ void yyerror(const_string fmt) { fprintf(stderr, "line %d (parsing): ", line_number); - fprintf(stderr, fmt); + fprintf(stderr, "%s", fmt); fprintf(stderr, "\n"); num_errors++; } @@ -72,7 +72,7 @@ void warning_0(const_string fmt) { fprintf(stderr, "line %d (warning): ", line_number); - fprintf(stderr, fmt); + fprintf(stderr, "%s", fmt); fprintf(stderr, "\n"); } @@ -120,7 +120,7 @@ void fatal_error_0(const_string fmt) { fprintf(stderr, "line %d (fatal): ", line_number); - fprintf(stderr, fmt); + fprintf(stderr, "%s", fmt); fprintf(stderr, "\n"); exit(1); } @@ -156,7 +156,7 @@ void internal_error_0(const_string fmt) { fprintf(stderr, "line %d (internal): ", line_number); - fprintf(stderr, fmt); + fprintf(stderr, "%s", fmt); fprintf(stderr, "\n"); exit(2); } diff --git a/Build/source/texk/web2c/omegafonts/out_routines.c b/Build/source/texk/web2c/omegafonts/out_routines.c index 3428cd8e769..186e4d357bf 100644 --- a/Build/source/texk/web2c/omegafonts/out_routines.c +++ b/Build/source/texk/web2c/omegafonts/out_routines.c @@ -3,7 +3,7 @@ This file is part of Omega, which is based on the web2c distribution of TeX, -Copyright (c) 1994--2001 John Plaice and Yannis Haralambous +Copyright 1994--2018 John Plaice and Yannis Haralambous Omega is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -368,5 +368,5 @@ out_digits(unsigned counter) void out(const_string sval) { - fprintf(file_output, sval); + fprintf(file_output, "%s", sval); } |