texlive[69822] Build/source/texk/web2c/mplibdir/mpxout.w: Fixed

commits+lscarso at tug.org commits+lscarso at tug.org
Mon Feb 12 10:09:17 CET 2024


Revision: 69822
          https://tug.org/svn/texlive?view=revision&revision=69822
Author:   lscarso
Date:     2024-02-12 10:09:17 +0100 (Mon, 12 Feb 2024)
Log Message:
-----------
Fixed "warning: strncat specified bound 1 equals source length [-Wstringop-overflow=]" in mpxout.w (K.Berry)

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/mplibdir/mpxout.w

Modified: trunk/Build/source/texk/web2c/mplibdir/mpxout.w
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/mpxout.w	2024-02-12 07:00:42 UTC (rev 69821)
+++ trunk/Build/source/texk/web2c/mplibdir/mpxout.w	2024-02-12 09:09:17 UTC (rev 69822)
@@ -540,7 +540,7 @@
         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;



More information about the tex-live-commits mailing list.