From c77560ae0ddc94c2091e5c4a4643aac667c39f16 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Wed, 17 Jul 2024 07:59:57 +0000 Subject: [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 --- Build/source/texk/web2c/cwebdir/ChangeLog | 4 ++++ Build/source/texk/web2c/cwebdir/twinx.ch | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * twinx.ch: Compile CWEB with G++-14. + 2024-07-15 Andreas Scherer * 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 -- cgit v1.2.3