diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-08-11 16:17:11 -0700 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2019-08-12 10:40:59 +0200 |
commit | 0ce120a140dadaa56875af2efc66ff805d37925b (patch) | |
tree | 34984f9cfd6809d50a062b0c06402924386777ac /libattr/libattr.c | |
parent | 2ad8924413eeb8a2123eccccef4371342d19d6e4 (diff) | |
download | attr-0ce120a140dadaa56875af2efc66ff805d37925b.tar.gz |
attr: Replace bzero with memset
bzero is a deprecated function that is optionally unavailable with
uClibc-ng.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libattr/libattr.c')
-rw-r--r-- | libattr/libattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libattr/libattr.c b/libattr/libattr.c index d550e10..2ebd1c5 100644 --- a/libattr/libattr.c +++ b/libattr/libattr.c @@ -298,7 +298,7 @@ attr_list(const char *path, char *buffer, const int buffersize, int flags, errno = EINVAL; return -1; } - bzero(buffer, sizeof(attrlist_t)); + memset(buffer, 0, sizeof(attrlist_t)); if (flags & ATTR_DONTFOLLOW) length = llistxattr(path, lbuf, sizeof(lbuf) - 1); @@ -349,7 +349,7 @@ attr_listf(int fd, char *buffer, const int buffersize, int flags, errno = EINVAL; return -1; } - bzero(buffer, sizeof(attrlist_t)); + memset(buffer, 0, sizeof(attrlist_t)); length = flistxattr(fd, lbuf, sizeof(lbuf) - 1); if (length < 0) |