diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2024-07-17 07:59:57 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2024-07-17 07:59:57 +0000 |
commit | c77560ae0ddc94c2091e5c4a4643aac667c39f16 (patch) | |
tree | 7002bbaa71acb4002412f598219a88a1777c2970 /Build | |
parent | d4d7c00da7d5fb324c6dc56d6a14c9c7ba4dd7c1 (diff) |
[CWEB] Compile with G++-14 (locally).
Avoid a "stringop truncation" warning with 'strncpy()'.
git-svn-id: svn://tug.org/texlive/trunk@71824 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/twinx.ch | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog index 36ad07121cd..319d925c2a0 100644 --- a/Build/source/texk/web2c/cwebdir/ChangeLog +++ b/Build/source/texk/web2c/cwebdir/ChangeLog @@ -1,3 +1,7 @@ +2024-07-17 Andreas Scherer <https://ascherer.github.io> + + * twinx.ch: Compile CWEB with G++-14. + 2024-07-15 Andreas Scherer <https://ascherer.github.io> * texinputs/pdfwebtocfront.tex: Release file resource early. diff --git a/Build/source/texk/web2c/cwebdir/twinx.ch b/Build/source/texk/web2c/cwebdir/twinx.ch index 9d2aaa92b67..af524856205 100644 --- a/Build/source/texk/web2c/cwebdir/twinx.ch +++ b/Build/source/texk/web2c/cwebdir/twinx.ch @@ -42,10 +42,12 @@ int main( if((f=fopen(*++argv,"r"))==NULL) @z -@x l.28 +@x l.27 + strncpy(*argv+strlen(*argv)-3,"idx",3); f=fopen(*argv,"r"); if (!f) @y + memcpy(*argv+strlen(*argv)-3,"idx",3); if((f=fopen(*argv,"r"))==NULL) @z |