diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-01-13 11:12:55 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-01-13 11:12:55 -0800 |
commit | 1c6e6f2315b343cbac94c2dd798a6ebb80489a12 (patch) | |
tree | 851756d9425469dfce159d7bb1a30bee0283816d /login/logout.c | |
parent | 8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff) | |
download | glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.zip glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.gz glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.bz2 |
Remove some references to bcopy/bcmp/bzero.
Diffstat (limited to 'login/logout.c')
-rw-r--r-- | login/logout.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |