diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2024-02-12 09:09:17 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2024-02-12 09:09:17 +0000 |
commit | 981938bd7ed6947d169d1e8094d3a62c0fc2de33 (patch) | |
tree | 34bc6ab74f0e8be6cd8ae67bef74c7342c99b9fc /Build/source/texk/web2c/mplibdir/mpxout.w | |
parent | 432da91e0535bfb41ec4a9cfdc66df8aa9c1d8e6 (diff) |
Fixed "warning: strncat specified bound 1 equals source length [-Wstringop-overflow=]" in mpxout.w (K.Berry)
git-svn-id: svn://tug.org/texlive/trunk@69822 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/mpxout.w')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mpxout.w | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/mplibdir/mpxout.w b/Build/source/texk/web2c/mplibdir/mpxout.w index 39ebe328bd3..b44da8d1ddc 100644 --- a/Build/source/texk/web2c/mplibdir/mpxout.w +++ b/Build/source/texk/web2c/mplibdir/mpxout.w @@ -540,7 +540,7 @@ static void mpx_copy_mpto (MPX mpx, FILE *outfile, int textype) { res = strncat(res,mpx->bb, strlen(mpx->bb)); } if (c == '\0') - res = strncat(res, "\n", 1); + res = strcat(res, "\n"); *s = c; } while (*(mpx->tt) != 'e'); s = res; |