texlive[57771] Build/source/texk/web2c/cwebdir: [CWEB] Fix 'Illegal
commits+ascherer at tug.org
commits+ascherer at tug.org
Wed Feb 17 17:22:21 CET 2021
Revision: 57771
http://tug.org/svn/texlive?view=revision&revision=57771
Author: ascherer
Date: 2021-02-17 17:22:21 +0100 (Wed, 17 Feb 2021)
Log Message:
-----------
[CWEB] Fix 'Illegal hardware instruction' on MacOS.
See https://tug.org/pipermail/tex-k/2021-February/003440.html for details.
Modified Paths:
--------------
trunk/Build/source/texk/web2c/cwebdir/ChangeLog
trunk/Build/source/texk/web2c/cwebdir/cweave.w
Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2021-02-17 11:40:54 UTC (rev 57770)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2021-02-17 16:22:21 UTC (rev 57771)
@@ -1,5 +1,9 @@
2021-02-17 Andreas Scherer <https://ascherer.github.io>
+ * cweave.w: Fix 'Illegal hardware instruction on MacOS.
+
+2021-02-17 Andreas Scherer <https://ascherer.github.io>
+
* Makefile: Main CWEB modules depend on COMMON inteface.
2021-02-16 Andreas Scherer <https://ascherer.github.io>
Modified: trunk/Build/source/texk/web2c/cwebdir/cweave.w
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/cweave.w 2021-02-17 11:40:54 UTC (rev 57770)
+++ trunk/Build/source/texk/web2c/cwebdir/cweave.w 2021-02-17 16:22:21 UTC (rev 57771)
@@ -1333,7 +1333,7 @@
if (*j--=='%' && (j==out_buf || *j!='\\')) {
*b--='%'; break;
}
- if (b<out_ptr) strncpy(out_buf+1,b+1,(size_t)(out_ptr-b));
+ if (b<out_ptr) memcpy(out_buf+1,b+1,(size_t)(out_ptr-b));
out_ptr-=b-out_buf;
}
More information about the tex-live-commits
mailing list.