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/tiedir | |
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/tiedir')
-rw-r--r-- | Build/source/texk/web2c/tiedir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/tiedir/tie.w | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/tiedir/ChangeLog b/Build/source/texk/web2c/tiedir/ChangeLog index 8bc990c1af7..28d2e6b467f 100644 --- a/Build/source/texk/web2c/tiedir/ChangeLog +++ b/Build/source/texk/web2c/tiedir/ChangeLog @@ -1,3 +1,8 @@ +2018-01-18 Karl Berry <karl@tug.org> + + * tie.w (print, print_ln): printf %s instead of direct string + (from Debian). + 2014-02-12 Peter Breitenlohner <peb@mppmu.mpg.de> * tie-w2c.ch: Handle input lines with CRLF. diff --git a/Build/source/texk/web2c/tiedir/tie.w b/Build/source/texk/web2c/tiedir/tie.w index 227328b729e..e40d487351b 100644 --- a/Build/source/texk/web2c/tiedir/tie.w +++ b/Build/source/texk/web2c/tiedir/tie.w @@ -25,7 +25,7 @@ % also repaired loop control for end of changes test (92-09-24) % Version 2.4 included <stdlib.h> instead of <malloc.h> when % used with ANSI-C (92-12-17) -% +% See ChangeLog for further changes. % Here is TeX material that gets inserted after \input cwebmac @@ -458,14 +458,14 @@ for terminating an output line and writing strings to the user. @^system dependencies@> @d term_out stdout -@d print(a) fprintf(term_out,a) /* `|print|' means write on the terminal */ +@d print(a) fprintf(term_out,"%s",a) /* `|print|' means write on the terminal */ @d print2(a,b) fprintf(term_out,a,b) /* same with two arguments */ @d print3(a,b,c) fprintf(term_out,a,b,c) /* same with three arguments */ @d print_c(v) fputc(v,term_out); /* print a single character */ @d new_line(v) fputc('\n',v) /* start new line */ @d term_new_line new_line(term_out) /* start new line of the terminal */ -@d print_ln(v) {fprintf(term_out,v);term_new_line;} +@d print_ln(v) {fprintf(term_out,"%s",v);term_new_line;} /* `|print|' and then start new line */ @d print2_ln(a,b) {print2(a,b);term_new_line;} /* same with two arguments */ @d print3_ln(a,b,c) {print3(a,b,c);term_new_line;} |