From 1c6e6f2315b343cbac94c2dd798a6ebb80489a12 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 Jan 2015 11:12:55 -0800 Subject: Remove some references to bcopy/bcmp/bzero. --- login/logout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'login') diff --git a/login/logout.c b/login/logout.c index 422e517..16923f1 100644 --- a/login/logout.c +++ b/login/logout.c @@ -45,9 +45,9 @@ logout (const char *line) if (getutline_r (&tmp, &utbuf, &ut) >= 0) { /* Clear information about who & from where. */ - bzero (ut->ut_name, sizeof ut->ut_name); + memset (ut->ut_name, '\0', sizeof ut->ut_name); #if _HAVE_UT_HOST - 0 - bzero (ut->ut_host, sizeof ut->ut_host); + memset (ut->ut_host, '\0', sizeof ut->ut_host); #endif #if _HAVE_UT_TV - 0 struct timeval tv; -- cgit v1.1