aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/args.c2
-rw-r--r--lib/lib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/args.c b/lib/args.c
index 1b69466e..0ec20375 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -181,7 +181,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
int i;
// Parse option format string
- bzero(gof, sizeof(struct getoptflagstate));
+ memset(gof, 0, sizeof(struct getoptflagstate));
gof->maxargs = INT_MAX;
if (!options) return;
diff --git a/lib/lib.c b/lib/lib.c
index 2c4361a8..ba6d132d 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -91,7 +91,7 @@ void *xmalloc(size_t size)
void *xzalloc(size_t size)
{
void *ret = xmalloc(size);
- bzero(ret, size);
+ memset(ret, 0, size);
return ret;
}