patch-text-utils_colcrt_c 552 B

1234567891011121314
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- util-linux-2.12r.orig/text-utils/colcrt.c 2001-03-15 11:09:59.000000000 +0100
  3. +++ util-linux-2.12r/text-utils/colcrt.c 2008-10-16 12:49:47.000000000 +0200
  4. @@ -252,8 +252,8 @@ void pflush(int ol)
  5. }
  6. putwchar('\n');
  7. }
  8. - bcopy(page[ol], page, (267 - ol) * 132 * sizeof(wchar_t));
  9. - bzero(page[267- ol], ol * 132 * sizeof(wchar_t));
  10. + memcpy(page, page[ol], (267 - ol) * 132 * sizeof(wchar_t));
  11. + memset(page[267- ol], 0, ol * 132 * sizeof(wchar_t));
  12. outline -= ol;
  13. outcol = 0;
  14. first = 1;