aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/microtar/src/microtar.c4
-rw-r--r--src/lpm.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/microtar/src/microtar.c b/lib/microtar/src/microtar.c
index 20c509d..6130a49 100644
--- a/lib/microtar/src/microtar.c
+++ b/lib/microtar/src/microtar.c
@@ -338,8 +338,8 @@ int mtar_clear_header(mtar_header_t *h){
h->mtime = 0;
h->type = 0;
- bzero(h->name, sizeof(h->name));
- bzero(h->linkname, sizeof(h->linkname));
+ memset(h->name, 0, sizeof(h->name));
+ memset(h->linkname, 0, sizeof(h->linkname));
return MTAR_ESUCCESS;
}
diff --git a/src/lpm.c b/src/lpm.c
index 595ec8c..e287808 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -918,7 +918,7 @@ static int lpm_extract(lua_State* L) {
if (current_read[strlen(last_read) + read_size - 1] != '\n')
strcpy(last_read, strtok_r(current_read, "\n", l_line_ptr));
else
- bzero(last_read, strlen(last_read));
+ memset(last_read, 0, strlen(last_read));
}
}