diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 17:50:42 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 17:50:42 -0500 |
commit | ad23c29eb4178fc3b5a39b777a78443bef9c5ba7 (patch) | |
tree | bf457721e33f4f479d8c00664f2bb0355b95d65f /lib | |
parent | 59a3d0b59c3e35d1eb9a3d11c40afc02e974fe34 (diff) | |
parent | b4931cb618a2b4d22482694cbc40e60990d684fc (diff) | |
download | lite-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')
-rw-r--r-- | lib/microtar/src/microtar.c | 5 |
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; } |