summaryrefslogtreecommitdiffstats
path: root/package/netkitbase/netkitbase-remove-bcopy.patch
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-12-02 06:48:22 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-12-02 06:48:22 +0000
commit0f372f9e1ed452413535d077328fbbc6c65844ba (patch)
treee707f2a6fc828c4a95a71ddb0a3eb00302214953 /package/netkitbase/netkitbase-remove-bcopy.patch
parent6a60acaa86ffc8b867f76eac5455f1f250c9ff92 (diff)
downloadbuildroot-novena-0f372f9e1ed452413535d077328fbbc6c65844ba.tar.gz
buildroot-novena-0f372f9e1ed452413535d077328fbbc6c65844ba.zip
Remove usage of bcopy.
Diffstat (limited to 'package/netkitbase/netkitbase-remove-bcopy.patch')
-rw-r--r--package/netkitbase/netkitbase-remove-bcopy.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/netkitbase/netkitbase-remove-bcopy.patch b/package/netkitbase/netkitbase-remove-bcopy.patch
new file mode 100644
index 000000000..b74b85b5f
--- /dev/null
+++ b/package/netkitbase/netkitbase-remove-bcopy.patch
@@ -0,0 +1,31 @@
+diff -ur netkit-base-0.17/inetd/builtins.c netkit-base-0.17-patched/inetd/builtins.c
+--- netkit-base-0.17/inetd/builtins.c 2000-07-22 15:13:07.000000000 -0500
++++ netkit-base-0.17-patched/inetd/builtins.c 2006-12-02 00:50:05.801209342 -0600
+@@ -140,10 +140,10 @@
+ text[LINESIZ + 1] = '\n';
+ for (rs = ring;;) {
+ if ((len = endring - rs) >= LINESIZ)
+- bcopy(rs, text, LINESIZ);
++ memcpy(text, rs, LINESIZ);
+ else {
+- bcopy(rs, text, len);
+- bcopy(ring, text + len, LINESIZ - len);
++ memcpy(text, rs, len);
++ memcpy(text + len, ring, LINESIZ - len);
+ }
+ if (++rs == endring)
+ rs = ring;
+@@ -183,10 +183,10 @@
+ return;
+
+ if ((len = endring - rs) >= LINESIZ)
+- bcopy(rs, text, LINESIZ);
++ memcpy(text, rs, LINESIZ);
+ else {
+- bcopy(rs, text, len);
+- bcopy(ring, text + len, LINESIZ - len);
++ memcpy(text, rs, len);
++ memcpy(text + len, ring, LINESIZ - len);
+ }
+ if (++rs == endring)
+ rs = ring;