aboutsummaryrefslogtreecommitdiff
path: root/lib/microtar/src/microtar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/microtar/src/microtar.c')
-rw-r--r--lib/microtar/src/microtar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/microtar/src/microtar.c b/lib/microtar/src/microtar.c
index 1cd9920..20c509d 100644
--- a/lib/microtar/src/microtar.c
+++ b/lib/microtar/src/microtar.c
@@ -337,8 +337,9 @@ int mtar_clear_header(mtar_header_t *h){
h->size = 0;
h->mtime = 0;
h->type = 0;
- bzero(h->name, strlen(h->name));
- bzero(h->linkname, strlen(h->linkname));
+
+ bzero(h->name, sizeof(h->name));
+ bzero(h->linkname, sizeof(h->linkname));
return MTAR_ESUCCESS;
}