summaryrefslogtreecommitdiff
path: root/package/util-linux-ng/patches/patch-text-utils_colcrt_c
blob: 122e5b23e074a4c41a5080b6841ba63637f458ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- util-linux-ng-2.15.orig/text-utils/colcrt.c	2009-02-24 16:39:30.000000000 +0100
+++ util-linux-ng-2.15/text-utils/colcrt.c	2009-06-22 22:53:15.000000000 +0200
@@ -252,8 +252,8 @@ void pflush(int ol)
 		}
 		putwchar('\n');
 	}
-	bcopy(page[ol], page, (267 - ol) * 132 * sizeof(wchar_t));
-	bzero(page[267- ol], ol * 132 * sizeof(wchar_t));
+	memcpy(page, page[ol], (267 - ol) * 132 * sizeof(wchar_t));
+	memset(page[267- ol], 0, ol * 132 * sizeof(wchar_t));
 	outline -= ol;
 	outcol = 0;
 	first = 1;