netkitbase-remove-bcopy.patch 931 B

12345678910111213141516171819202122232425262728293031
  1. diff -ur netkit-base-0.17/inetd/builtins.c netkit-base-0.17-patched/inetd/builtins.c
  2. --- netkit-base-0.17/inetd/builtins.c 2000-07-22 15:13:07.000000000 -0500
  3. +++ netkit-base-0.17-patched/inetd/builtins.c 2006-12-02 00:50:05.801209342 -0600
  4. @@ -140,10 +140,10 @@
  5. text[LINESIZ + 1] = '\n';
  6. for (rs = ring;;) {
  7. if ((len = endring - rs) >= LINESIZ)
  8. - bcopy(rs, text, LINESIZ);
  9. + memcpy(text, rs, LINESIZ);
  10. else {
  11. - bcopy(rs, text, len);
  12. - bcopy(ring, text + len, LINESIZ - len);
  13. + memcpy(text, rs, len);
  14. + memcpy(text + len, ring, LINESIZ - len);
  15. }
  16. if (++rs == endring)
  17. rs = ring;
  18. @@ -183,10 +183,10 @@
  19. return;
  20. if ((len = endring - rs) >= LINESIZ)
  21. - bcopy(rs, text, LINESIZ);
  22. + memcpy(text, rs, LINESIZ);
  23. else {
  24. - bcopy(rs, text, len);
  25. - bcopy(ring, text + len, LINESIZ - len);
  26. + memcpy(text, rs, len);
  27. + memcpy(text + len, ring, LINESIZ - len);
  28. }
  29. if (++rs == endring)
  30. rs = ring;