aboutsummaryrefslogtreecommitdiff
path: root/lib/microtar
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-02-25 17:50:42 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-02-25 17:50:42 -0500
commitad23c29eb4178fc3b5a39b777a78443bef9c5ba7 (patch)
treebf457721e33f4f479d8c00664f2bb0355b95d65f /lib/microtar
parent59a3d0b59c3e35d1eb9a3d11c40afc02e974fe34 (diff)
parentb4931cb618a2b4d22482694cbc40e60990d684fc (diff)
downloadlite-xl-plugin-manager-1.2.0.tar.gz
lite-xl-plugin-manager-1.2.0.zip
Merge branch 'master' of github.com:adamharrison/lite-xl-plugin-managerv1.2.0
Diffstat (limited to 'lib/microtar')
-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;
}