summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2021-02-17 16:22:21 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2021-02-17 16:22:21 +0000
commit5474646e62cd6cb02117e0969a20d5f229278d19 (patch)
tree4d4f6bb0765f3cd216d3d55fa70a12897cdf1f37 /Build/source/texk/web2c
parent04176e4b2a7a8605c6c25bf494fc06c580235324 (diff)
[CWEB] Fix 'Illegal hardware instruction' on MacOS.
See https://tug.org/pipermail/tex-k/2021-February/003440.html for details. git-svn-id: svn://tug.org/texlive/trunk@57771 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/cwebdir/cweave.w2
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 6a278c0ae5c..3d07a58b253 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -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>
diff --git a/Build/source/texk/web2c/cwebdir/cweave.w b/Build/source/texk/web2c/cwebdir/cweave.w
index 5cc62b1721a..c2284deb38a 100644
--- a/Build/source/texk/web2c/cwebdir/cweave.w
+++ b/Build/source/texk/web2c/cwebdir/cweave.w
@@ -1333,7 +1333,7 @@ boolean per_cent,boolean carryover@t\2\2@>)
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;
}