From c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Mon, 17 Aug 2009 07:27:39 +0200 Subject: replace bcopy,bzero,index and rindex Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa --- text-utils/colcrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text-utils/colcrt.c') diff --git a/text-utils/colcrt.c b/text-utils/colcrt.c index 891fd86db..6f796656d 100644 --- a/text-utils/colcrt.c +++ b/text-utils/colcrt.c @@ -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)); + memmove(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; -- cgit v1.2.3-55-g7522