summaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
committerRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
commit1c6e6f2315b343cbac94c2dd798a6ebb80489a12 (patch)
tree851756d9425469dfce159d7bb1a30bee0283816d /login
parent8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff)
downloadglibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.gz
Remove some references to bcopy/bcmp/bzero.
Diffstat (limited to 'login')
-rw-r--r--login/logout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login/logout.c b/login/logout.c
index 422e5170e1..16923f14a4 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;